Closed AnthoBalitrand closed 2 years ago
:tada: Thanks for opening your first issue here! Welcome to the community!
:tada: This issue has been resolved in version 1.7.1 :tada:
The release is available on PyPI and GitHub release
Posted by semantic-release bot
Describe the bug
If there are some firewalls pre-registered on Panorama (using the "Add" button on the "Managed Devices" menu), but which yet never connected to Panorama (awaiting deployment), it causes an AttributeError on the refresh_devices() function which is trying to split the PAN-OS version value of the device while it's not yet known.
Current behavior
>>> pano.refresh_devices(expand_vsys=False, include_device_groups=False) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/to148757/PycharmProjects/pan-os-python/panos/panorama.py", line 701, in refresh_devices firewall_instances = tmp_fw.refreshall_from_xml( File "/Users/to148757/PycharmProjects/pan-os-python/panos/firewall.py", line 403, in refreshall_from_xml fw._set_version_and_version_info(entry.findtext("sw-version")) File "/Users/to148757/PycharmProjects/pan-os-python/panos/base.py", line 4234, in _set_version_and_version_info tokens = self.version.split(".")[:3] AttributeError: 'NoneType' object has no attribute 'split'