Skip to content

Commit 8758c4c

Browse files
committed
Bugfix in _get_image_install_mode()
1 parent 22191b5 commit 8758c4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

iosfw/iosfw.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,9 +426,9 @@ def _get_image_install_mode(self):
426426
""" Returns either install or bundle """
427427
cmd = "show version"
428428
output = self.device.send_command(cmd)
429-
if "INSTALL" in output:
429+
if "INSTALL" in output or 'packages.conf' in output:
430430
return "install"
431-
if "BUNDLE" in output:
431+
else:
432432
return "bundle"
433433

434434
def _check_image_feature_set(self, file_name):

0 commit comments

Comments
 (0)