Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions charts/site-workflows/templates/sensor-keystone-oslo-event.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ spec:
print(str(uuid.UUID(project_id_without_dashes)))

- - name: ansible-create-project
when: {{ printf "{{steps.oslo-events.outputs.parameters.svm_enabled}} == True" | quote }}
when: {{ printf "'{{steps.oslo-events.outputs.parameters.svm_state}}' == 'created'" | quote }}
templateRef:
name: ansible-workflow-template
template: ansible-run
Expand All @@ -113,7 +113,7 @@ spec:
value: {{ printf "project_id={{steps.convert-project-id.outputs.result}}" | quote }}

- - name: ansible-create-svm
when: {{ printf "{{steps.oslo-events.outputs.parameters.svm_created}} == True" | quote }}
when: {{ printf "'{{steps.oslo-events.outputs.parameters.svm_state}}' == 'created'" | quote }}
templateRef:
name: ansible-workflow-template
template: ansible-run
Expand All @@ -125,7 +125,7 @@ spec:
value: {{ printf "svm_name=os-{{workflow.parameters.project_id}} project_id={{steps.convert-project-id.outputs.result}}" | quote }}

- - name: netapp-configure-net
when: {{ printf "{{steps.oslo-events.outputs.parameters.svm_created}} == True" | quote }}
when: {{ printf "'{{steps.oslo-events.outputs.parameters.svm_state}}' == 'created'" | quote }}
templateRef:
name: netapp-configure-net
template: main
Expand All @@ -135,7 +135,7 @@ spec:
value: {{ printf "{{workflow.parameters.project_id}}" | quote }}

- - name: ansible-remove-svm
when: {{ printf "{{steps.oslo-events.outputs.parameters.svm_state}} == 'removed'" | quote }}
when: {{ printf "'{{steps.oslo-events.outputs.parameters.svm_state}}' == 'removed'" | quote }}
templateRef:
name: ansible-workflow-template
template: ansible-run
Expand All @@ -147,7 +147,7 @@ spec:
value: {{ printf "svm_name=os-{{workflow.parameters.project_id}} project_id={{steps.convert-project-id.outputs.result}}" | quote }}

- - name: ansible-remove-project-svm
when: {{ printf "{{steps.oslo-events.outputs.parameters.svm_state}} == 'removed'" | quote }}
when: {{ printf "'{{steps.oslo-events.outputs.parameters.svm_state}}' == 'removed'" | quote }}
templateRef:
name: ansible-workflow-template
template: ansible-run
Expand All @@ -159,7 +159,7 @@ spec:
value: {{ printf "project_id={{steps.convert-project-id.outputs.result}} dry_run=false" | quote }}

- - name: ansible-remove-project
when: {{ printf "{{workflow.parameters.event_type}} == 'identity.project.deleted'" | quote }}
when: {{ printf "'{{workflow.parameters.event_type}}' == 'identity.project.deleted'" | quote }}
templateRef:
name: ansible-workflow-template
template: ansible-run
Expand Down
Loading