summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Singh <vivek.singh@msystechnologies.com>2019-05-07 16:29:10 +0530
committerVivek Singh <vivek.singh@msystechnologies.com>2019-05-07 16:29:10 +0530
commit3b1f25bcc97a66adaa9514a59ccbee08cd0baf27 (patch)
tree6ea2fc56356add004ec5702ebbd6a5741167c4fa
parent9c4f1d3073866989f0822debd64866f146df7878 (diff)
downloadchef-3b1f25bcc97a66adaa9514a59ccbee08cd0baf27.tar.gz
Fix win create temp dir
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
-rw-r--r--lib/chef/knife/bootstrap/train_connector.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/knife/bootstrap/train_connector.rb b/lib/chef/knife/bootstrap/train_connector.rb
index df94290dbf..f1b4816049 100644
--- a/lib/chef/knife/bootstrap/train_connector.rb
+++ b/lib/chef/knife/bootstrap/train_connector.rb
@@ -28,8 +28,7 @@ class Chef
MKTEMP_WIN_COMMAND = <<~EOM.freeze
$parent = [System.IO.Path]::GetTempPath();
[string] $name = [System.Guid]::NewGuid();
- $tmp = New-Item -ItemType Directory -Path;
- (Join-Path $parent $name);
+ $tmp = New-Item -ItemType Directory -Path (Join-Path $parent $name);
$tmp.FullName
EOM