Skip to content

Commit

Permalink
Wordmark replacements: chef-server-ctl/plugins/cleanup_bifrost (chef#…
Browse files Browse the repository at this point in the history
…1949)

Signed-off-by: Josh Gitlin <jgitlin@pinnacle21.com>
  • Loading branch information
jgitlin-p21 committed Sep 9, 2021
1 parent d43f9a1 commit 85c97b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/chef-server-ctl/plugins/cleanup_bifrost.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
options = {}

OptionParser.new do |opts|
opts.banner = "chef-server-ctl cleanup-bifrost [options]"
opts.banner = "#{ChefUtils::Dist::Server::SERVER_CTL} cleanup-bifrost [options]"
opts.on("-b SIZE", "--batch-size SIZE", "How many authz actors to delete at a time") do |b|
options[:batch_size] = b.to_i
end
Expand Down Expand Up @@ -140,7 +140,7 @@ def safety_check(db)
WHERE tablename='cleanup_tracking_auth_actors'")
if res.ntuples > 0
puts "ERROR: cleanup_tracking_auth_actors already exists. cleanup-bifrost may be running."
puts "ERROR: If you are sure cleanup-bifrost is not running, you can clean up the tracking tables with: chef-server-ctl cleanup-bifrost --force-cleanup"
puts "ERROR: If you are sure cleanup-bifrost is not running, you can clean up the tracking tables with: #{ChefUtils::Dist::Server::SERVER_CTL} cleanup-bifrost --force-cleanup"
exit(1)
end
end
Expand Down Expand Up @@ -178,7 +178,7 @@ def print_and_return_estimate(known_actor_list, db)
tcount = fetch_auth_actor_count(db)
estimated_del_count = [0, tcount - known_actor_list.length].max
puts "\n----------------------------------------"
puts " Total chef users+clients: #{known_actor_list.length}"
puts " Total #{ChefUtils::Dist::Infra::SHORT} users+clients: #{known_actor_list.length}"
puts "Total bifrost auth_actors: #{tcount}"
puts "Deletion Candidates (est): #{estimated_del_count}"
puts "----------------------------------------\n"
Expand Down

0 comments on commit 85c97b3

Please sign in to comment.