Skip to content

Commit e81d19a

Browse files
Fix ansible-lint: snake_case var name, failed_when instead of ignore_errors, key order
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 8c04179 commit e81d19a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

collection/stages/roles/day2ops/tasks/procedures/cpms_replace_attrs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,11 @@
150150
- master_after | length == 3
151151
- master_after | selectattr('location.zone', 'eq', expected_fd_az) | list | length == 2
152152
- root_volumes_after.results | selectattr('stdout', 'eq',
153-
'availability_zone="' + expected_fd_cinderaz + '"\ntype="' + expected_fd_volumeType + '"') | list | length == 2
153+
'availability_zone="' + expected_fd_cinderaz + '"\ntype="' + expected_fd_volume_type + '"') | list | length == 2
154154
vars:
155155
expected_fd_az: "{{ orig_failuredomains[1].availabilityZone }}"
156156
expected_fd_cinderaz: "{{ orig_failuredomains[1].rootVolume.availabilityZone }}"
157-
expected_fd_volumeType: "{{ orig_failuredomains[1].rootVolume.volumeType }}"
157+
expected_fd_volume_type: "{{ orig_failuredomains[1].rootVolume.volumeType }}"
158158

159159
- name: Confirm that the VMs include the added network and SG
160160
ansible.builtin.assert:
@@ -202,6 +202,7 @@
202202
tasks_from: wait_until_cluster_is_healthy.yml
203203

204204
- name: Clean up test OpenStack resources
205+
failed_when: false
205206
block:
206207
- name: Delete test network
207208
openstack.cloud.network:
@@ -214,4 +215,3 @@
214215
cloud: "{{ user_cloud }}"
215216
name: "{{ cpms_replacements.sg_name }}"
216217
state: absent
217-
ignore_errors: true

0 commit comments

Comments
 (0)