Skip to content

Commit

Permalink
fix: A fix for new production namespace value
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Christie committed Mar 14, 2024
1 parent 2d94d19 commit 3775a71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion roles/media-replicator/tasks/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
name: "{{ stack_namespace_fact }}"
register: n_result

- name: Assert namepsace exists
- name: Assert namespace exists
assert:
that: n_result.resources|length == 1

Expand Down
4 changes: 2 additions & 2 deletions roles/media-replicator/tasks/prep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@
- name: Set direction (production)
set_fact:
replicate_direction_fact: BtoA
when: replicator_stack_ns|string == 'production-stack'
when: replicator_stack_ns|string in ['v2-production-stack', 'production-stack']

- name: Set direction (staging)
set_fact:
replicate_direction_fact: AtoB
when: replicator_stack_ns|string == 'staging-stack'
when: replicator_stack_ns|string in 'staging-stack'

when: replicator_stack_ns|string|length > 0

Expand Down

0 comments on commit 3775a71

Please sign in to comment.