Differential D13200 Diff 31965 src/applications/drydock/blueprint/DrydockBlueprintImplementation.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/blueprint/DrydockBlueprintImplementation.php
| Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Lines | $resource->openTransaction(); | ||||
| } | } | ||||
| if ($allocated) { | if ($allocated) { | ||||
| $lease->save(); | $lease->save(); | ||||
| } | } | ||||
| $resource->endReadLocking(); | $resource->endReadLocking(); | ||||
| if ($allocated) { | if ($allocated) { | ||||
| $resource->saveTransaction(); | $resource->saveTransaction(); | ||||
| $this->log('Allocated Lease'); | $this->log(pht('Allocated Lease')); | ||||
| } else { | } else { | ||||
| $resource->killTransaction(); | $resource->killTransaction(); | ||||
| $this->log(pht('Failed to Allocate Lease')); | $this->log(pht('Failed to Allocate Lease')); | ||||
| } | } | ||||
| if ($allocation_exception) { | if ($allocation_exception) { | ||||
| $this->logException($allocation_exception); | $this->logException($allocation_exception); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 310 Lines • Show Last 20 Lines | |||||