Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14329025
D10776.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D10776.diff
View Options
diff --git a/src/applications/drydock/blueprint/DrydockAmazonEC2HostBlueprintImplementation.php b/src/applications/drydock/blueprint/DrydockAmazonEC2HostBlueprintImplementation.php
--- a/src/applications/drydock/blueprint/DrydockAmazonEC2HostBlueprintImplementation.php
+++ b/src/applications/drydock/blueprint/DrydockAmazonEC2HostBlueprintImplementation.php
@@ -914,7 +914,7 @@
break;
} catch (Exception $ex) {
if ($attempts == 0) {
- throw ex;
+ throw $ex;
}
sleep(5);
diff --git a/src/applications/drydock/interface/command/DrydockWinRMCommandInterface.php b/src/applications/drydock/interface/command/DrydockWinRMCommandInterface.php
--- a/src/applications/drydock/interface/command/DrydockWinRMCommandInterface.php
+++ b/src/applications/drydock/interface/command/DrydockWinRMCommandInterface.php
@@ -38,7 +38,14 @@
$change_directory = '';
if ($this->getWorkingDirectory() !== null) {
- $change_directory .= 'cd '.$this->getWorkingDirectory().' & ';
+ $working_directory = $this->getWorkingDirectory();
+ if (strlen($working_directory) >= 2 && $working_directory[1] === ':') {
+ // We must also change drive.
+ $drive = $working_directory[0];
+ $change_directory .= 'cd '.$working_directory.' & '.$drive.': & ';
+ } else {
+ $change_directory .= 'cd '.$working_directory.' & ';
+ }
}
switch ($this->getEscapingMode()) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 3:09 PM (21 h, 10 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6907838
Default Alt Text
D10776.diff (1 KB)
Attached To
Mode
D10776: Fix change directory for WinRM protocol
Attached
Detach File
Event Timeline
Log In to Comment