Skip to content

Commit

Permalink
Fix handling of provisioning during pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed Nov 18, 2024
1 parent 9ab8d75 commit e603561
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/src/Model/Table/IdentifierAssignmentsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,12 @@ public function assign(
$cxn->commit();
}

// Trigger provisioning, letting errors bubble up (AR-GMR-5)
if(method_exists($EntityTable, "requestProvisioning") && !empty($entity->id)) {
$this->llog('rule', "AR-GMR-5 Requesting provisioning for $entityType " . $entity->id);
$EntityTable->requestProvisioning(id: $entity->id, context: ProvisioningContextEnum::Automatic);
if($provision) {
// Trigger provisioning, letting errors bubble up (AR-GMR-5)
if(method_exists($EntityTable, "requestProvisioning") && !empty($entity->id)) {
$this->llog('rule', "AR-GMR-5 Requesting provisioning for $entityType " . $entity->id);
$EntityTable->requestProvisioning(id: $entity->id, context: ProvisioningContextEnum::Automatic);
}
}

return $ret;
Expand Down

0 comments on commit e603561

Please sign in to comment.