1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 05:12:41 +01:00

Remove setWorkingDirectory call on SFTP interface

Summary: I derped on this; the SFTP interface doesn't have setWorkingDirectory because it implements DrydockFilesystemInterface and not DrydockCommandInterface.  So when you use the Upload File build step, the daemon will crash due to an undefined method.

Test Plan: Tested on my live server.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D10351
This commit is contained in:
James Rhodes 2014-08-27 08:27:46 +10:00
parent 3049e46875
commit ddfa5cbdf6

View file

@ -115,8 +115,7 @@ final class DrydockPreallocatedHostBlueprintImplementation
->setConfiguration(array(
'host' => $resource->getAttribute('host'),
'port' => $resource->getAttribute('port'),
'credential' => $resource->getAttribute('credential')))
->setWorkingDirectory($lease->getAttribute('path'));
'credential' => $resource->getAttribute('credential')));
}
throw new Exception("No interface of type '{$type}'.");