Fix E306 in tests/ (#6495)

This commit is contained in:
Maxime Guyot
2020-08-05 22:22:55 +02:00
committed by GitHub
parent fc23f37af7
commit 50598d9d47
2 changed files with 16 additions and 8 deletions

View File

@@ -29,8 +29,10 @@
loop_control:
index_var: vm_id
- name: Wait for vms to have ipaddress assigned # noqa 306
shell: "kubectl get vmis -n {{ test_name }} instance-{{ vm_id }} -o json | jq '.status.interfaces[].ipAddress' | tr -d '\"'"
- name: Wait for vms to have ipaddress assigned
shell: "set -o pipefail && kubectl get vmis -n {{ test_name }} instance-{{ vm_id }} -o json | jq '.status.interfaces[].ipAddress' | tr -d '\"'"
args:
executable: /bin/bash
changed_when: false
register: vm_ips
loop: "{{ range(1, vm_count|int + 1, 1) | list }}"