1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-20 04:20:55 +01:00

Probably fix bad loadArtifactLease() call

Summary: Ref T9205. This is a likely fix.

Test Plan: This isn't straightforward to test in the upstream unless you have custom code on top of it.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T9205

Differential Revision: https://secure.phabricator.com/D13928
This commit is contained in:
epriestley 2015-08-18 10:46:41 -07:00
parent bd0bbc713a
commit b21270d498

View file

@ -39,13 +39,14 @@ final class HarbormasterCommandBuildStepImplementation
public function execute(
HarbormasterBuild $build,
HarbormasterBuildTarget $build_target) {
$viewer = PhabricatorUser::getOmnipotentUser();
$settings = $this->getSettings();
$variables = $build_target->getVariables();
$artifact = $build_target->loadArtifact($settings['hostartifact']);
$impl = $artifact->getArtifactImplementation();
$lease = $impl->loadArtifactLease();
$lease = $impl->loadArtifactLease($viewer);
$this->platform = $lease->getAttribute('platform');