summaryrefslogtreecommitdiff
path: root/lib/chef/knife/core/node_editor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/knife/core/node_editor.rb')
-rw-r--r--lib/chef/knife/core/node_editor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/core/node_editor.rb b/lib/chef/knife/core/node_editor.rb
index 0f7e51cdf3..b009bf8652 100644
--- a/lib/chef/knife/core/node_editor.rb
+++ b/lib/chef/knife/core/node_editor.rb
@@ -96,7 +96,7 @@ class Chef
# @api private
def apply_updates(updated_data)
- if node.name and node.name != updated_data["name"]
+ if node.name && node.name != updated_data["name"]
ui.warn "Changing the name of a node results in a new node being created, #{node.name} will not be modified or removed."
ui.confirm "Proceed with creation of new node"
end