Skip to content

Commit

Permalink
Merge pull request #167 from stakater/fixesRegex
Browse files Browse the repository at this point in the history
Fix regex
  • Loading branch information
TehreemNisa authored Jan 9, 2025
2 parents f6f3930 + 92a826f commit 1974c9c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@
vars:
receiver_name: "{{ item.grafana_details.name }}"
receiver_url: "{{ item.grafana_details.link }}"
transformed_namespace: "{{ item.cluster.name | regex_replace('^(.*?)-.*$', '\\1') }}"
transformed_namespace: "{{ item.cluster.name | regex_replace('^(.*)-[^-]+$', '\\1') }}"
cluster_name: "{{ item.cluster.name }}"
provision_mode: "hubAndSpoke"
loop: "{{ mapped_integrations }}"
Expand Down Expand Up @@ -351,3 +351,6 @@
# Moved to the bottom as we want to trigger deletion after all
- name: Start deletion for hubAndSpoke mode
ansible.builtin.include_tasks: delete_grafana_oncall_hub_spoke.yml
when:
- manifestwork_creation_results is not defined
- create_integration_for_dict is not defined or create_integration_for_dict | length == 0

0 comments on commit 1974c9c

Please sign in to comment.