summaryrefslogtreecommitdiff
path: root/lib/chef/knife
diff options
context:
space:
mode:
authorJos Backus <jos@catnook.com>2015-10-20 13:26:16 -0700
committerJos Backus <jos@catnook.com>2015-10-20 13:26:32 -0700
commitaf7379d0beeceacf0c7806ac1811a472dbc15a3b (patch)
tree2807fa8c7b38cedfd5636716fcfb6edb2b6e40d5 /lib/chef/knife
parentb705e745b398449e572f1ed582575eada2e4a471 (diff)
downloadchef-af7379d0beeceacf0c7806ac1811a472dbc15a3b.tar.gz
Route all tags access through Chef::Node#{tags,tag}
This should avoid node tags not being initialized properly to an empty Array.
Diffstat (limited to 'lib/chef/knife')
-rw-r--r--lib/chef/knife/core/node_presenter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/core/node_presenter.rb b/lib/chef/knife/core/node_presenter.rb
index d9ea8c7669..5192c53f51 100644
--- a/lib/chef/knife/core/node_presenter.rb
+++ b/lib/chef/knife/core/node_presenter.rb
@@ -125,7 +125,7 @@ ROLES
summarized << <<-SUMMARY
#{key('Recipes:')} #{Array(node[:recipes]).join(', ')}
#{key('Platform:')} #{node[:platform]} #{node[:platform_version]}
-#{key('Tags:')} #{Array(node[:tags]).join(', ')}
+#{key('Tags:')} #{node.tags.join(', ')}
SUMMARY
if config[:medium_output] || config[:long_output]
summarized +=<<-MORE