diff options
author | John Keiser <jkeiser@opscode.com> | 2013-04-16 12:24:25 -0700 |
---|---|---|
committer | John Keiser <jkeiser@opscode.com> | 2013-06-07 13:12:30 -0700 |
commit | a2f501ac142980e215677d145b0c20148546db96 (patch) | |
tree | 8cf16a6b3f7a286d2ff329a9698251af2e2e28fc | |
parent | c70e5ec0e0a0f93f0bfa5ace15c90dc3d70093da (diff) | |
download | chef-a2f501ac142980e215677d145b0c20148546db96.tar.gz |
Don't overwrite filenames in the original command when printing output
-rw-r--r-- | lib/chef/knife/xargs.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/xargs.rb b/lib/chef/knife/xargs.rb index 6c18eb153e..07895d70df 100644 --- a/lib/chef/knife/xargs.rb +++ b/lib/chef/knife/xargs.rb @@ -253,7 +253,7 @@ class Chef def sub_filenames(str, tempfiles) tempfiles.each_pair do |tempfile, file| - str.gsub!(tempfile.path, format_path(file[:file])) + str = str.gsub(tempfile.path, format_path(file[:file])) end str end |