diff options
-rw-r--r-- | lib/chef/knife/core/bootstrap_context.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/core/bootstrap_context.rb b/lib/chef/knife/core/bootstrap_context.rb index 2b5887a7cf..9eb9e0143e 100644 --- a/lib/chef/knife/core/bootstrap_context.rb +++ b/lib/chef/knife/core/bootstrap_context.rb @@ -213,7 +213,7 @@ class Chef attributes[:run_list] = @run_list end - attributes.delete(:run_list) if attributes[:policy_name] && !attributes[:policy_name].empty? + attributes.delete(:run_list) if ( attributes[:policy_name] && !attributes[:policy_name].empty? ) || ( attributes["policy_name"] && !attributes["policy_name"].empty? ) attributes.merge!(tags: @config[:tags]) if @config[:tags] && !@config[:tags].empty? end end |