diff options
Diffstat (limited to 'lib/chef/knife/delete.rb')
-rw-r--r-- | lib/chef/knife/delete.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/knife/delete.rb b/lib/chef/knife/delete.rb index fb827c1143..417336b56b 100644 --- a/lib/chef/knife/delete.rb +++ b/lib/chef/knife/delete.rb @@ -67,7 +67,7 @@ class Chef def format_path_with_root(entry) root = entry.root == chef_fs ? " (remote)" : " (local)" - "#{format_path(entry.path)}#{root}" + "#{format_path(entry)}#{root}" end def delete_result(*results) @@ -92,9 +92,9 @@ class Chef end end if deleted_any - output("Deleted #{format_path(results[0].path)}") + output("Deleted #{format_path(results[0])}") elsif !found_any - ui.error "#{format_path(results[0].path)}: No such file or directory" + ui.error "#{format_path(results[0])}: No such file or directory" error = true end error |