Interpret the swift_managed_regions variable correctly in with_nested loops

Change-Id: Iccf4a912cf530edc95191e8d171ffb36e5085ee7
Closes-Bug: 1538738
Related-Bug: 1495748
This commit is contained in:
Travis Truman 2016-01-28 12:29:05 -05:00 committed by Jesse Pretorius (odyssey4me)
parent 64ecb59520
commit 533a0a86cc
2 changed files with 4 additions and 4 deletions

View File

@ -68,7 +68,7 @@
command: "/usr/bin/python /etc/swift/scripts/swift_rings.py -f /etc/swift/scripts/{{ item[0] }}.contents -r {{ item[1] }}"
with_nested:
- [ 'account', 'container' ]
- "{{ swift_managed_regions }}"
- swift_managed_regions
when: swift_managed_regions is defined
sudo: yes
sudo_user: "{{ swift_system_user_name }}"
@ -95,7 +95,7 @@
command: "/usr/bin/python /etc/swift/scripts/swift_rings.py -f /etc/swift/scripts/object-{{ item[0].policy.index }}.contents -r {{ item[1] }}"
with_nested:
- "{{ swift.storage_policies }}"
- "{{ swift_managed_regions }}"
- swift_managed_regions
when: swift_managed_regions is defined
sudo: yes
sudo_user: "{{ swift_system_user_name }}"

View File

@ -61,7 +61,7 @@
command: "/usr/bin/python /etc/swift/scripts/swift_rings_check.py -f /etc/swift/scripts/{{ item[0] }}.contents -r {{ item[1] }}"
with_nested:
- [ 'account', 'container' ]
- "{{ swift_managed_regions }}"
- swift_managed_regions
when: swift_managed_regions is defined
sudo: yes
sudo_user: "{{ swift_system_user_name }}"
@ -88,7 +88,7 @@
command: "/usr/bin/python /etc/swift/scripts/swift_rings_check.py -f /etc/swift/scripts/object-{{ item[0].policy.index }}.contents -r {{ item[1] }}"
with_nested:
- "{{ swift.storage_policies }}"
- "{{ swift_managed_regions }}"
- swift_managed_regions
when: swift_managed_regions is defined
sudo: yes
sudo_user: "{{ swift_system_user_name }}"