fix: Use updated scan structure

!1
This commit is contained in:
2024-02-20 15:28:36 +09:30
parent 30947877e6
commit 68f43bf70f
2 changed files with 14 additions and 6 deletions

View File

@ -38,7 +38,9 @@
SELECT id, subnet FROM subnets WHERE
scanAgent='{{ mysql_query_agent_details.query_result[0][0].id }}'
and
subnet='{{ inbound_data.scan[0].subnet | ip2ipam }}'
subnet='{{ (inbound_data.scan.subnet | split('/'))[0] | ip2ipam }}'
and
mask = '{{ (inbound_data.scan.subnet | split('/'))[1] | int }}'
single_transaction: true
register: mysql_query_agent_subnets