You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commit_all (commit/push) from Panorama to devices sometimes results in a KeyError.
Expected behavior
There should not be an error.
Current behavior
Commit succeeds, but pan-os-python raises a KeyError:
Traceback (most recent call last):
File "test.py", line 14, in <module>
pano.commit(cmd=cmd, sync=True, sync_all=True)
File "/Users/btorresgil/Documents/Development/pandevice/panos/base.py", line 4535, in commit
return self._commit(
File "/Users/btorresgil/Documents/Development/pandevice/panos/base.py", line 4637, in _commit
result = self.syncjob(commit_response, sync_all=sync_all)
File "/Users/btorresgil/Documents/Development/pandevice/panos/base.py", line 4744, in syncjob
return self._parse_job_results(job_xml, get_devices=True)
File "/Users/btorresgil/Documents/Development/pandevice/panos/base.py", line 4908, in _parse_job_results
"warnings": job["warnings"],
KeyError: 'warnings'
Describe the bug
Commit_all (commit/push) from Panorama to devices sometimes results in a KeyError.
Expected behavior
There should not be an error.
Current behavior
Commit succeeds, but pan-os-python raises a KeyError:
Steps to reproduce
Context
Affects Ansible module panos_commit_push. See PaloAltoNetworks/pan-os-ansible#178
Your Environment
The text was updated successfully, but these errors were encountered: