Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable logs in loops #532

Merged
merged 2 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,6 @@
success_msg: Delete created auth policies passed
loop: "{{ result.results }}"
when: todelete | length > 0 and result | length > 0
no_log: true

- name: Reset todelete
ansible.builtin.set_fact:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,6 @@
loop: "{{ result.results }}"
loop_control:
index_var: recovery_point_index
no_log: true

########################################################################################################

Expand All @@ -1052,7 +1051,6 @@
loop: "{{ result.results }}"
loop_control:
index_var: vgs_index
no_log: true

########################################################################################################

Expand All @@ -1079,7 +1077,6 @@
loop: "{{ result.results }}"
loop_control:
index_var: vms_index
no_log: true

- name: Reset to delete lists
ansible.builtin.set_fact:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
fail_msg: Failed to create category
success_msg: Successfully created category
loop: "{{ results.results }}"
no_log: true

- name: Set categories to be used in security rules
ansible.builtin.set_fact:
Expand Down Expand Up @@ -234,7 +233,6 @@
with_items: "{{ result.response.rules }}"
loop_control:
index_var: item_index
no_log: true

- name: Find index of 'inbound2'
ansible.builtin.set_fact:
Expand All @@ -243,7 +241,6 @@
with_items: "{{ result.response.rules }}"
loop_control:
index_var: item_index
no_log: true

- name: Find index of 'outbound1'
ansible.builtin.set_fact:
Expand All @@ -252,7 +249,6 @@
with_items: "{{ result.response.rules }}"
loop_control:
index_var: item_index
no_log: true

- name: Verify creation status
ansible.builtin.assert:
Expand Down Expand Up @@ -339,7 +335,6 @@
ansible.builtin.set_fact:
rule_map: "{{ rule_map | default({}) | combine({item.description: item}) }}"
loop: "{{ result.response.rules }}"
no_log: true

- name: Verify creation status
ansible.builtin.assert:
Expand Down Expand Up @@ -468,7 +463,6 @@
ansible.builtin.set_fact:
rule_map: "{{ rule_map | default({}) | combine({item.description: item}) }}"
loop: "{{ result.response.rules }}"
no_log: true

- name: Verify creation status
ansible.builtin.assert:
Expand Down Expand Up @@ -770,7 +764,6 @@
ansible.builtin.set_fact:
rule_map: "{{ rule_map | default({}) | combine({item.description: item}) }}"
loop: "{{ result.response.rules }}"
no_log: true

- name: Verify updated policy status
ansible.builtin.assert:
Expand Down Expand Up @@ -983,7 +976,6 @@
ansible.builtin.set_fact:
rule_map: "{{ rule_map | default({}) | combine({item.description: item}) }}"
loop: "{{ result.response.rules }}"
no_log: true

- name: Verify update status
ansible.builtin.assert:
Expand Down Expand Up @@ -1160,7 +1152,6 @@
"{{ category4 }}",
"{{ category5 }}",
]
no_log: true

- name: Verify deletion status
ansible.builtin.assert:
Expand All @@ -1170,4 +1161,3 @@
fail_msg: Failed to delete category
success_msg: Successfully deleted category
loop: "{{ result.results }}"
no_log: true
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
description: ansible test
register: results
loop: [0, 1, 2, 3]
no_log: true

- name: Verify category creation status
ansible.builtin.assert:
Expand All @@ -35,7 +34,6 @@
fail_msg: Failed to create category
success_msg: Successfully created category
loop: "{{ results.results }}"
no_log: true

- name: Set categories to be used in security rules
ansible.builtin.set_fact:
Expand Down Expand Up @@ -233,7 +231,6 @@
register: result
loop:
["{{ category1 }}", "{{ category2 }}", "{{ category3 }}", "{{ category4 }}"]
no_log: true

- name: Verify deletion status
ansible.builtin.assert:
Expand All @@ -243,4 +240,3 @@
fail_msg: Failed to delete category
success_msg: Successfully deleted category
loop: "{{ result.results }}"
no_log: true
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,6 @@
loop: "{{ result.results }}"
loop_control:
index_var: storage_containers_index
no_log: true

- name: Reset to delete list
ansible.builtin.set_fact:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,6 @@
loop: "{{ todelete }}"
register: result
ignore_errors: true
no_log: true

- name: Delete created users status
ansible.builtin.assert:
Expand All @@ -625,7 +624,6 @@
success_msg: Delete created users passed
loop: "{{ result.results }}"
when: todelete | length > 0 and result | length > 0
no_log: true

- name: Reset todelete list
ansible.builtin.set_fact:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,6 @@
fail_msg: "List all disks from VM failed"
success_msg: "List all disks from VM passed"
loop: "{{ result.response }}"
no_log: true

#################################################################################

Expand All @@ -654,7 +653,6 @@
fail_msg: "List all disks from VM with limit 1 failed"
success_msg: "List all disks from VM with limit 1 passed"
loop: "{{ result.response }}"
no_log: true

#################################################################################

Expand All @@ -676,7 +674,6 @@
fail_msg: "List all disks from VM with limit 2 failed"
success_msg: "List all disks from VM with limit 2 passed"
loop: "{{ result.response }}"
no_log: true

#################################################################################

Expand All @@ -688,7 +685,6 @@
register: result
ignore_errors: true
loop: "{{ todelete }}"
no_log: true

- name: Deletion Status
ansible.builtin.assert:
Expand All @@ -702,7 +698,6 @@
fail_msg: "Unable to delete disks from VM "
success_msg: "Disks from VM are deleted successfully "
loop: "{{ result.results }}"
no_log: true

################################################################################

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,6 @@
loop: "{{ result.results }}"
loop_control:
index_var: vms_index
no_log: true

- name: Reset to delete list
ansible.builtin.set_fact:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,6 @@
fail_msg: "Unable to delete Subnet "
success_msg: "Subnet is deleted successfully "
loop: "{{ result.results }}"
no_log: true

- name: Reset todelete list
ansible.builtin.set_fact:
Expand Down Expand Up @@ -923,7 +922,6 @@
fail_msg: "Unable to delete Subnet "
success_msg: "Subnet is deleted successfully "
loop: "{{ result.results }}"
no_log: true

- name: Reset todelete list
ansible.builtin.set_fact:
Expand Down
Loading