Gather Facts is not working for paloaltonetworks.panos.panos_zone
robconklinmd opened this issue · 1 comments
robconklinmd commented
When running paloaltonetworks.panos.panos_zone with state: gathered it is erroring on the gathered_filter
When I run with:
state: gathered
and
gathered_filter: "template == my_template"
or
gathered_filter: "template_stack == my_template_stack"
I get the error "Specify either the template or the template stack."
Expected behavior
I expect to get a list of zones for the template or template_stack.
Current behavior
It gives me an error: "Specify either the template or the template stack."
Possible solution
Steps to reproduce
Run Play with gathered_filter
- name: Zones
paloaltonetworks.panos.panos_zone:
provider: "{{ provider }}"
gathered_filter: "template == NAAVA8-C1-LAB1-VPINETFW-TP"
state: gathered
register: zones
or - name: Zones
paloaltonetworks.panos.panos_zone:
provider: "{{ provider }}"
gathered_filter: "template_stack == NAAVA8-C1-LAB1-VPINETFW-TPSK"
state: gathered
register: zones
Context
I'm updating zones. My workaround will be to use the depricated module panos_zone_facts and then transfer the output fields so I can use them with panos_zone module to update the zones.
Your Environment
- Collection: paloaltonetworks.panos 2.13.0
- Python: python version = 3.6.8
- Ansible: ansible [core 2.11.4]
- PAN-OS Python Library & version (e.g. pandevice 0.14.0, pan-os-python 1.0.2):
robconklinmd commented
I confused this with another issue closing.