Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: KeyError during Panorama commit/push #337

Merged
merged 1 commit into from
May 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions panos/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1531,9 +1531,9 @@ def _set_reference(
are sibling objects, just like refresh=False assumes. Doing
this allows the rest of this function to operate as before.
"""
from panos.device import Vsys
from panos.firewall import Firewall
from panos.panorama import Panorama, Template, TemplateStack
from panos.device import Vsys

new_tree = None
if reference_type.ROOT == Root.VSYS:
Expand Down Expand Up @@ -4905,7 +4905,7 @@ def _parse_job_results(self, show_job_xml, get_devices=True):
"result": job["result"],
"jobid": job["id"],
"user": job["user"],
"warnings": job["warnings"],
"warnings": job["warnings"] if "warnings" in job else None,
"starttime": job["tenq"],
"endtime": job["tfin"],
"messages": messages,
Expand Down