summaryrefslogtreecommitdiff
path: root/lib/chef/knife/node_run_list_remove.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/knife/node_run_list_remove.rb')
-rw-r--r--lib/chef/knife/node_run_list_remove.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/node_run_list_remove.rb b/lib/chef/knife/node_run_list_remove.rb
index df50818c23..22b006b8bf 100644
--- a/lib/chef/knife/node_run_list_remove.rb
+++ b/lib/chef/knife/node_run_list_remove.rb
@@ -49,7 +49,7 @@ class Chef
node.run_list.remove(e)
else
ui.warn "#{e} is not in the run list"
- unless e =~ /^(recipe|role)\[/
+ unless e.match?(/^(recipe|role)\[/)
ui.warn "(did you forget recipe[] or role[] around it?)"
end
end