summaryrefslogtreecommitdiff
path: root/lib/chef
diff options
context:
space:
mode:
authorsawanoboly <sawanoboriyu@higanworks.com>2019-06-24 17:19:19 +0900
committersawanoboly <sawanoboriyu@higanworks.com>2019-06-24 17:19:52 +0900
commita4b4416a6123bcfc33d5efffb56e1773951d1ae6 (patch)
tree3fbcdd35322f4f08f24d1da602d771cae9ffd4eb /lib/chef
parentfdbdc97b7f7bace8df63f11d452de4ff26567e6d (diff)
downloadchef-a4b4416a6123bcfc33d5efffb56e1773951d1ae6.tar.gz
ignore noise outputs
Signed-off-by: sawanoboly <sawanoboriyu@higanworks.com>
Diffstat (limited to 'lib/chef')
-rw-r--r--lib/chef/knife/bootstrap/train_connector.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/bootstrap/train_connector.rb b/lib/chef/knife/bootstrap/train_connector.rb
index 59de880cbd..56b644d25d 100644
--- a/lib/chef/knife/bootstrap/train_connector.rb
+++ b/lib/chef/knife/bootstrap/train_connector.rb
@@ -117,7 +117,7 @@ class Chef
cmd = windows? ? MKTEMP_WIN_COMMAND : MKTEMP_NIX_COMMAND
@tmpdir ||= begin
res = run_command!(cmd)
- dir = res.stdout.chomp.strip
+ dir = res.stdout.split.last
unless windows?
# Ensure that dir has the correct owner. We are possibly
# running with sudo right now - so this directory would be owned by root.