summaryrefslogtreecommitdiff
path: root/lib/chef/knife/role_env_run_list_remove.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/knife/role_env_run_list_remove.rb')
-rw-r--r--lib/chef/knife/role_env_run_list_remove.rb18
1 files changed, 8 insertions, 10 deletions
diff --git a/lib/chef/knife/role_env_run_list_remove.rb b/lib/chef/knife/role_env_run_list_remove.rb
index ae30d0a884..0f44e9c6af 100644
--- a/lib/chef/knife/role_env_run_list_remove.rb
+++ b/lib/chef/knife/role_env_run_list_remove.rb
@@ -21,7 +21,6 @@ require "chef/knife"
class Chef
class Knife
class RoleEnvRunListRemove < Knife
-
deps do
require "chef/role"
require "chef/json_compat"
@@ -30,14 +29,14 @@ class Chef
banner "knife role env_run_list remove [ROLE] [ENVIRONMENT] [ENTRIES]"
def remove_from_env_run_list(role, environment, item_to_remove)
- nlist = []
- role.run_list_for(environment).each do |entry|
- nlist << entry unless entry == item_to_remove
- #unless entry == @name_args[2]
- # nlist << entry
- #end
- end
- role.env_run_lists_add(environment => nlist)
+ nlist = []
+ role.run_list_for(environment).each do |entry|
+ nlist << entry unless entry == item_to_remove
+ #unless entry == @name_args[2]
+ # nlist << entry
+ #end
+ end
+ role.env_run_lists_add(environment => nlist)
end
def run
@@ -51,7 +50,6 @@ class Chef
config[:env_run_list] = true
output(format_for_display(role))
end
-
end
end
end