diff --git a/bucket-tool b/bucket-tool index a311219..7256bb6 100755 --- a/bucket-tool +++ b/bucket-tool @@ -15,11 +15,11 @@ def usage #{__FILE__} [ACTION ] [] Description: - This utlity is meant to be used to interact with & manage the filebucket on P4 nodes due to the - utility for that `puppet filebucket -l ` being nonfunctional. + This utlity is meant to be used to interact with & manage the filebucket in the same capacity as + the builtin filebucket utility. However, it does not handle any puppet tie ins. - This implements the same functionality (minus the puppet tie-in) and will allow the user to - search the filebucket and restore from it. + I created this due to the puppet filebucket utility in my companies P4 envrionments not + functioning Actions: search : Search for bucket entries matching a portion of the filepath @@ -705,6 +705,7 @@ def delete_entry (bucket) entry = bucket.entries[$CONFIG[:search_term]] else puts "BucketEntry[#{$CONFIG[:search_term]}] Does not exist. Please make sure you provided the correct hash value" + exit end puts "Corresponding Entry: #{entry.info}"