fix(agent): only attempt to scan subnet if subnets were returned

!8
This commit is contained in:
2024-02-22 17:11:02 +09:30
parent 785ae77510
commit 2186a85abf
2 changed files with 25 additions and 13 deletions

View File

@ -84,7 +84,7 @@
- name: Scan Subnet
ansible.builtin.include_tasks:
file: tasks/scan_subnet.yaml
loop: "{{ nfc_c_scan_agent_subnets }}"
loop: "{{ nfc_c_scan_agent_subnets | default([]) }}"
loop_control:
loop_var: subnet