Updated help message

This commit is contained in:
Tristan Ancelet 2024-05-26 13:44:16 -05:00
parent 26d03ddfea
commit 6b9260af43

View File

@ -15,11 +15,11 @@ def usage
#{__FILE__} [ACTION <arg>] [<flags>] #{__FILE__} [ACTION <arg>] [<flags>]
Description: Description:
This utlity is meant to be used to interact with & manage the filebucket on P4 nodes due to the This utlity is meant to be used to interact with & manage the filebucket in the same capacity as
utility for that `puppet filebucket -l <action>` being nonfunctional. 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 I created this due to the puppet filebucket utility in my companies P4 envrionments not
search the filebucket and restore from it. functioning
Actions: Actions:
search <term> : Search for bucket entries matching a portion of the filepath search <term> : Search for bucket entries matching a portion of the filepath
@ -705,6 +705,7 @@ def delete_entry (bucket)
entry = bucket.entries[$CONFIG[:search_term]] entry = bucket.entries[$CONFIG[:search_term]]
else else
puts "BucketEntry[#{$CONFIG[:search_term]}] Does not exist. Please make sure you provided the correct hash value" puts "BucketEntry[#{$CONFIG[:search_term]}] Does not exist. Please make sure you provided the correct hash value"
exit
end end
puts "Corresponding Entry: #{entry.info}" puts "Corresponding Entry: #{entry.info}"