summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-05-07 09:18:11 -0700
committerGitHub <noreply@github.com>2019-05-07 09:18:11 -0700
commit840f6459be0f2342481d40f3274907048511e05f (patch)
tree6ea2fc56356add004ec5702ebbd6a5741167c4fa
parent9c4f1d3073866989f0822debd64866f146df7878 (diff)
parent3b1f25bcc97a66adaa9514a59ccbee08cd0baf27 (diff)
downloadchef-840f6459be0f2342481d40f3274907048511e05f.tar.gz
Merge pull request #8476 from MsysTechnologiesllc/VSingh/windows-create-temp-dir
Chef 15: Unable to create temp dir on windows system
-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