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

Associate Harbormaster build target with leases

Summary: Ref T1049.  This ensures the Harbormaster build target is associated with leases, so in the future we can query things and find out whether builds are still running with associated leases.

Test Plan: Leased a host, checked the DB and saw the field populated.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: joshuaspence, Korvin, epriestley

Maniphest Tasks: T1049

Differential Revision: https://secure.phabricator.com/D10870
This commit is contained in:
June Rhodes 2015-08-24 17:20:59 +10:00
parent c69d465891
commit 254b394f2c

View file

@ -24,6 +24,7 @@ final class HarbormasterLeaseHostBuildStepImplementation
// Create the lease.
$lease = id(new DrydockLease())
->setResourceType('host')
->setOwnerPHID($build_target->getPHID())
->setAttributes(
array(
'platform' => $settings['platform'],