Skip to content

Commit 30d26ea

Browse files
committed
Update when condition for deploy manifest playbook
1 parent 21e4624 commit 30d26ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • ansible/collections/ansible_collections/nhsd/apigee/roles/deploy_manifest/tasks

ansible/collections/ansible_collections/nhsd/apigee/roles/deploy_manifest/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
# since products can only be created if they reference proxies
5555
# that exist. This safety check can be removed when the
5656
# manifest manages proxies too.
57-
when: item.name | regex_search('^' + SERVICE_NAME + '-' + PULL_REQUEST | default(APIGEE_ENVIRONMENT))
57+
when: (item.name is match('^' ~ SERVICE_NAME ~ '-' ~ (PULL_REQUEST | default(APIGEE_ENVIRONMENT))))
5858

5959
# - name: deploy apigee specs
6060
# nhsd.apigee.deploy_spec:

0 commit comments

Comments
 (0)