Skip to content

Commit 3e2e926

Browse files
authored
fix(panos.updater.SoftwareUpdater.install): Fix for load_config parameter (#447)
* fix on usage of load_config parameter when updating a device * fix formatting
1 parent 5b54cf2 commit 3e2e926

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

panos/updater.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,8 @@ def install(self, version, load_config=None, sync=False):
120120
"Device %s installing version: %s" % (self.pandevice.id, version)
121121
)
122122
response = self._op(
123-
'request system software install%s version "%s"'
124-
% (
125-
" load-config " + load_config if load_config is not None else "",
126-
version,
127-
)
123+
'request system software install %s version "%s"'
124+
% ('load-config "{0}"'.format(load_config) if load_config else "", version,)
128125
)
129126
if sync:
130127
result = self.pandevice.syncjob(response)

0 commit comments

Comments
 (0)