PaloAltoNetworks / pan-os-ansible

Ansible collection for easy automation of Palo Alto Networks next generation firewalls and Panorama, in both physical and virtual form factors.
https://pan.dev/ansible/docs/panos
Apache License 2.0
204 stars 97 forks source link

fix(panos_facts.py): Fixed virtual systems fact name #558

Closed horiagunica closed 6 months ago

horiagunica commented 6 months ago

Description

This PR fixes #532 .

Motivation and Context

Wrong fact name.

How Has This Been Tested?

Local library and test file:

TASK [Print vsys facts] ****************************************************************************
ok: [panorama-mgmt-main] => {
    "vsys": {
        "ansible_facts": {
            "ansible_net_full_commit_required": false,
            "ansible_net_gather_subset": [
                "system",
                "vsys"
            ],
            "ansible_net_hostname": "vma-test",
            "ansible_net_model": "PA-VM",
            "ansible_net_multivsys": "off",
            "ansible_net_serial": "",
            "ansible_net_uncommitted_changes": false,
            "ansible_net_uptime": "0 days, 4:38:10",
            "ansible_net_version": "11.1.0",
            "ansible_net_virtual_systems": [
                {
                    "vsys_currentsessions": "3",
                    "vsys_description": null,
                    "vsys_id": "1",
                    "vsys_iflist": [
                        "ethernet1/1",
                        "ethernet1/2"
                    ],
                    "vsys_maxsessions": "0",
                    "vsys_name": "vsys1",
                    "vsys_vrlist": [],
                    "vsys_zonelist": [
                        "some-zone"
                    ]
                }
            ]
        },
        "changed": false,
        "failed": false
    }
}

Screenshots (if appropriate)

Types of changes

Checklist

github-actions[bot] commented 5 months ago

:tada: This PR is included in version 2.20.0 :tada:

The release is available on Ansible Galaxy and GitHub release

Posted by semantic-release bot