1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-20 05:42:40 +01:00

Remove call to loadDrydockLease

Summary: Fixes T9219... I think.

Test Plan: swagging a guess for epriestley

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T9219

Differential Revision: https://secure.phabricator.com/D13932
This commit is contained in:
Chad Little 2015-08-18 17:52:55 -07:00
parent e0faa66772
commit a1d1cf77a7

View file

@ -25,6 +25,7 @@ final class HarbormasterUploadArtifactBuildStepImplementation
public function execute( public function execute(
HarbormasterBuild $build, HarbormasterBuild $build,
HarbormasterBuildTarget $build_target) { HarbormasterBuildTarget $build_target) {
$viewer = PhabricatorUser::getOmnipotentUser();
$settings = $this->getSettings(); $settings = $this->getSettings();
$variables = $build_target->getVariables(); $variables = $build_target->getVariables();
@ -35,7 +36,8 @@ final class HarbormasterUploadArtifactBuildStepImplementation
$variables); $variables);
$artifact = $build_target->loadArtifact($settings['hostartifact']); $artifact = $build_target->loadArtifact($settings['hostartifact']);
$lease = $artifact->loadDrydockLease(); $impl = $artifact->getArtifactImplementation();
$lease = $impl->loadArtifactLease($viewer);
$interface = $lease->getInterface('filesystem'); $interface = $lease->getInterface('filesystem');
@ -44,7 +46,7 @@ final class HarbormasterUploadArtifactBuildStepImplementation
// Insert the artifact record. // Insert the artifact record.
$artifact = $build_target->createArtifact( $artifact = $build_target->createArtifact(
PhabricatorUser::getOmnipotentUser(), $viewer,
$settings['name'], $settings['name'],
HarbormasterFileArtifact::ARTIFACTCONST, HarbormasterFileArtifact::ARTIFACTCONST,
array( array(