diff --git a/src/applications/drydock/blueprint/DrydockPreallocatedHostBlueprintImplementation.php b/src/applications/drydock/blueprint/DrydockPreallocatedHostBlueprintImplementation.php index 0c877e842c..d9b705fe10 100644 --- a/src/applications/drydock/blueprint/DrydockPreallocatedHostBlueprintImplementation.php +++ b/src/applications/drydock/blueprint/DrydockPreallocatedHostBlueprintImplementation.php @@ -108,13 +108,15 @@ final class DrydockPreallocatedHostBlueprintImplementation 'host' => $resource->getAttribute('host'), 'port' => $resource->getAttribute('port'), 'credential' => $resource->getAttribute('credential'), - 'platform' => $resource->getAttribute('platform'))); + 'platform' => $resource->getAttribute('platform'))) + ->setWorkingDirectory($lease->getAttribute('path')); case 'filesystem': return id(new DrydockSFTPFilesystemInterface()) ->setConfiguration(array( 'host' => $resource->getAttribute('host'), 'port' => $resource->getAttribute('port'), - 'credential' => $resource->getAttribute('credential'))); + 'credential' => $resource->getAttribute('credential'))) + ->setWorkingDirectory($lease->getAttribute('path')); } throw new Exception("No interface of type '{$type}'.");