summaryrefslogtreecommitdiff
path: root/lib/chef/knife/xargs.rb
diff options
context:
space:
mode:
authorJohn Keiser <jkeiser@opscode.com>2013-04-16 12:24:25 -0700
committerJohn Keiser <jkeiser@opscode.com>2013-06-07 13:12:30 -0700
commita2f501ac142980e215677d145b0c20148546db96 (patch)
tree8cf16a6b3f7a286d2ff329a9698251af2e2e28fc /lib/chef/knife/xargs.rb
parentc70e5ec0e0a0f93f0bfa5ace15c90dc3d70093da (diff)
downloadchef-a2f501ac142980e215677d145b0c20148546db96.tar.gz
Don't overwrite filenames in the original command when printing output
Diffstat (limited to 'lib/chef/knife/xargs.rb')
-rw-r--r--lib/chef/knife/xargs.rb2
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