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:
parent
bd0bbc713a
commit
b21270d498
1 changed files with 2 additions and 1 deletions
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in a new issue