diff options
author | Thom May <thom@chef.io> | 2016-05-03 12:03:45 +0100 |
---|---|---|
committer | Thom May <thom@chef.io> | 2016-05-05 14:35:37 +0100 |
commit | 7ca0d3eef49e8115bd0927abbefb84a3527f3a33 (patch) | |
tree | a3a4dc522b6b440c28ebc18a71c129376117aef6 /lib/chef/knife/list.rb | |
parent | db3567feabbb4ab6de40ab22ce44559129c63532 (diff) | |
download | chef-7ca0d3eef49e8115bd0927abbefb84a3527f3a33.tar.gz |
Introduce display_name and use it
This allows us to use the path we produce for other display purposes and
consume it internally to have a canonical path for comparisons and
printing
Signed-off-by: Thom May <thom@may.lt>
Diffstat (limited to 'lib/chef/knife/list.rb')
-rw-r--r-- | lib/chef/knife/list.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/list.rb b/lib/chef/knife/list.rb index 3d1583b270..a109504788 100644 --- a/lib/chef/knife/list.rb +++ b/lib/chef/knife/list.rb @@ -95,7 +95,7 @@ class Chef printed_something = true end output "#{format_path(result)}:" - print_results(children.map { |result| maybe_add_slash(result.name, result.dir?) }.sort, "") + print_results(children.map { |result| maybe_add_slash(result.display_name, result.dir?) }.sort, "") end exit self.exit_code if self.exit_code |