diff options
author | Anshul Sharma <justanshulsharma@gmail.com> | 2014-10-16 02:46:22 +0530 |
---|---|---|
committer | Anshul Sharma <justanshulsharma@gmail.com> | 2014-10-16 02:46:22 +0530 |
commit | b542aba420889874f2a308514b147c04c558280e (patch) | |
tree | 6d90ad9aa529e911df33031d4ee897266a5496a8 | |
parent | d3150dcf413e96a5140e0e30ac94698e159632a9 (diff) | |
download | chef-b542aba420889874f2a308514b147c04c558280e.tar.gz |
fix for #2173
Fix for Inconsistent knife from file globbing
-rw-r--r-- | lib/chef/knife/node_from_file.rb | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/chef/knife/node_from_file.rb b/lib/chef/knife/node_from_file.rb index d69392a8db..aadce892f2 100644 --- a/lib/chef/knife/node_from_file.rb +++ b/lib/chef/knife/node_from_file.rb @@ -35,16 +35,17 @@ class Chef end def run - updated = loader.load_from('nodes', @name_args[0]) - - updated.save - - output(format_for_display(updated)) if config[:print_after] - - ui.info("Updated Node #{updated.name}!") + @name_args.each do |arg| + updated = loader.load_from('nodes', @name_args[0]) + + updated.save + + output(format_for_display(updated)) if config[:print_after] + + ui.info("Updated Node #{updated.name}!") + end end end end end - |