Skip to content

Commit

Permalink
fix(panos.updater.SoftwareUpdater.install): Fix for load_config param…
Browse files Browse the repository at this point in the history
…eter (#447)

* fix on usage of load_config parameter when updating a device

* fix formatting
  • Loading branch information
FoSix committed Jun 1, 2022
1 parent 5b54cf2 commit 3e2e926
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions panos/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,8 @@ def install(self, version, load_config=None, sync=False):
"Device %s installing version: %s" % (self.pandevice.id, version)
)
response = self._op(
'request system software install%s version "%s"'
% (
" load-config " + load_config if load_config is not None else "",
version,
)
'request system software install %s version "%s"'
% ('load-config "{0}"'.format(load_config) if load_config else "", version,)
)
if sync:
result = self.pandevice.syncjob(response)
Expand Down

0 comments on commit 3e2e926

Please sign in to comment.