Skip to content

Commit

Permalink
Updating language in fb_launchd
Browse files Browse the repository at this point in the history
Differential Revision: D65471059

fbshipit-source-id: c72a2bc2ac40eeb1c06ee168b593015fbc98aaea
  • Loading branch information
Armaan Mali authored and facebook-github-bot committed Nov 7, 2024
1 parent a4939b3 commit bb09471
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions itchef/cookbooks/fb_launchd/resources/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
default_action :run

# Attributes that circumvent or defeat the purpose of using launchd as a node
# API. Blacklist them so that this blows up when they're used. If you really
# API. Blocklist them so that this blows up when they're used. If you really
# want to use these, just make a launchd resource instead.
BLACKLISTED_ATTRIBUTES = %w{
BLOCKLISTED_ATTRIBUTES = %w{
label
path
}.freeze
Expand Down Expand Up @@ -56,9 +56,9 @@

# Set up current jobs.
node['fb_launchd']['jobs'].each do |name, attrs|
if attrs.keys.any? { |k| BLACKLISTED_ATTRIBUTES.include?(k) }
fail "fb_launchd[#{name}]: uses a blacklisted attribute (one of " +
"#{BLACKLISTED_ATTRIBUTES}). If you want to use them, create a " +
if attrs.keys.any? { |k| BLOCKLISTED_ATTRIBUTES.include?(k) }
fail "fb_launchd[#{name}]: uses a blocklisted attribute (one of " +
"#{BLOCKLISTED_ATTRIBUTES}). If you want to use them, create a " +
"'launchd' resource instead"
end

Expand Down

0 comments on commit bb09471

Please sign in to comment.