Skip to content

Commit b2a6fe4

Browse files
committed
project.created sensor - ignore untagged projects
Prior to this commit, we relied on a "create SVM" workflow checking if the newly minted project has UNDERSTACK_SVM tags. If it didn't, the workflow terminated with non-zero exit code indicating failure and this prevented the Ansible workflow from executing. But creating a project without the tags should not be considered an exception or erroneous situation, because it may create confusion, unnecessary alerts and so on. Instead of that, we simply read the output of the previous workflow to see if Ansible should proceed or not.
1 parent 2154013 commit b2a6fe4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

workflows/openstack/sensors/sensor-keystone-oslo-event.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ spec:
9393
print(str(uuid.UUID(project_id_without_dashes)))
9494
9595
- - name: ansible-to-nautobot
96+
when: "{{steps.oslo-events.outputs.svm_enabled}} == 'true'"
9697
inline:
9798
container:
9899
image: ghcr.io/rss-engineering/undercloud-nautobot/ansible:latest

0 commit comments

Comments
 (0)