Differential D19073 Diff 45729 src/applications/drydock/blueprint/DrydockWorkingCopyBlueprintImplementation.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/blueprint/DrydockWorkingCopyBlueprintImplementation.php
| Show First 20 Lines • Show All 200 Lines • ▼ Show 20 Lines | try { | ||||
| $lease = $this->loadHostLease($resource); | $lease = $this->loadHostLease($resource); | ||||
| } catch (Exception $ex) { | } catch (Exception $ex) { | ||||
| // If we can't load the lease, assume we don't need to take any actions | // If we can't load the lease, assume we don't need to take any actions | ||||
| // to destroy it. | // to destroy it. | ||||
| return; | return; | ||||
| } | } | ||||
| // Destroy the lease on the host. | // Destroy the lease on the host. | ||||
| $lease->releaseOnDestruction(); | $lease->setReleaseOnDestruction(true); | ||||
| if ($lease->isActive()) { | if ($lease->isActive()) { | ||||
| // Destroy the working copy on disk. | // Destroy the working copy on disk. | ||||
| $command_type = DrydockCommandInterface::INTERFACE_TYPE; | $command_type = DrydockCommandInterface::INTERFACE_TYPE; | ||||
| $interface = $lease->getInterface($command_type); | $interface = $lease->getInterface($command_type); | ||||
| $root_key = 'workingcopy.root'; | $root_key = 'workingcopy.root'; | ||||
| $root = $resource->getAttribute($root_key); | $root = $resource->getAttribute($root_key); | ||||
| ▲ Show 20 Lines • Show All 302 Lines • Show Last 20 Lines | |||||