Skip to content

Commit

Permalink
bugfix: get value
Browse files Browse the repository at this point in the history
  • Loading branch information
aleixhub committed Dec 12, 2022
1 parent 1a65498 commit d9cc9ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions workshop-manager/operator/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -973,13 +973,13 @@ def create_resource_claim(self, logger, workshop):
)

if 'purpose' in self.parameters:
resource_claim_definition['metadata']['annotations'][purpose_annotation] = self.parameters.purpose
resource_claim_definition['metadata']['annotations'][purpose_annotation] = self.parameters.get('purpose')

if 'purpose_activity' in self.parameters:
resource_claim_definition['metadata']['annotations'][purpose_activity_annotation] = self.parameters.purpose_activity
resource_claim_definition['metadata']['annotations'][purpose_activity_annotation] = self.parameters.get('purpose_activity')

if 'salesforce_id' in self.parameters:
resource_claim_definition['metadata']['annotations'][salesforce_id_annotation] = self.parameters.salesforce_id
resource_claim_definition['metadata']['annotations'][salesforce_id_annotation] = self.parameters.get('salesforce_id')

resource_claim_definition = custom_objects_api.create_namespaced_custom_object(
poolboy_domain, poolboy_api_version, self.namespace, 'resourceclaims',
Expand Down

0 comments on commit d9cc9ad

Please sign in to comment.