Skip to content

Commit

Permalink
Fix logic in AgnosticV Operator for desired_state (#2354)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkupferer authored Jan 15, 2025
1 parent e7680fc commit e8697c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agnosticv-operator/operator/agnosticvcomponent.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ def __resource_provider_definition(self):
},
"desired_state":
# FIXME - clean up syntax for readability.
"{%- if 0 < resource_states | map('default', {}, True) | list | json_query(\"length([?!contains([keys(status.actions.provision || `{}`), keys(status.towerJobs | `{}`)][], 'completeTimestamp')])\") -%}\n"
"{%- if 0 < resource_states | map('default', {}, True) | list | json_query(\"length([?!contains([keys(status.actions.provision || `{}`), keys(status.towerJobs.provision || `{}`)][], 'completeTimestamp')])\") -%}\n"
"{#- desired_state started until all AnarchySubjects have finished provision -#}\n"
"started\n"
"{%- elif 0 < resource_templates | json_query(\"length([?spec.vars.action_schedule.start <= '\" ~ now(True, \"%FT%TZ\") ~ \"' && spec.vars.action_schedule.stop > '\" ~ now(True, \"%FT%TZ\") ~ \"'])\") -%}\n"
Expand Down

0 comments on commit e8697c9

Please sign in to comment.