Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F23061979
D13508.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D13508.diff
View Options
Index: src/applications/drydock/blueprint/DrydockAmazonEC2HostBlueprintImplementation.php
===================================================================
--- src/applications/drydock/blueprint/DrydockAmazonEC2HostBlueprintImplementation.php
+++ src/applications/drydock/blueprint/DrydockAmazonEC2HostBlueprintImplementation.php
@@ -60,6 +60,14 @@
$lease->getAttributes(),
$this->getDetail('attributes'));
+ if ($lease->getAttribute('platform') === null) {
+ // If the platform is not specified, then we can lease against any
+ // existing host resource (this is used for working copies where
+ // the platform is not known ahead of time, but the target host
+ // resource ID is).
+ $platform_match = true;
+ }
+
if ($platform_match && $custom_match) {
$this->log(pht(
'This blueprint can allocate the specified lease.'));
@@ -974,6 +982,10 @@
}
$lease->setAttribute('path', $full_path);
+ if ($lease->getAttribute('platform') === null) {
+ // If the lease didn't specify a platform, set it now.
+ $lease->setAttribute('platform', $platform);
+ }
$this->log(pht(
'Lease %d acquired on resource %d',
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 7, 4:51 AM (19 h, 31 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
17450368
Default Alt Text
D13508.diff (1 KB)
Attached To
Mode
D13508: [drydock/aws/working-copies-caching] Update AWS EC2 blueprint to support working copy caches
Attached
Detach File
Event Timeline
Log In to Comment