Skip to content

Commit

Permalink
[fwutil]: Fix firmware update command. (sonic-net#895)
Browse files Browse the repository at this point in the history
Signed-off-by: Nazarii Hnydyn <[email protected]>
  • Loading branch information
nazariig authored Apr 29, 2020
1 parent d950192 commit a6de521
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fwutil/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,6 @@ def update(ctx, yes, force, image):
squashfs = None

try:
cup = ComponentUpdateProvider()

if image == IMAGE_NEXT:
squashfs = SquashFs()

Expand All @@ -237,6 +235,9 @@ def update(ctx, yes, force, image):
cup = ComponentUpdateProvider(fs_path)
else:
log_helper.print_warning("Next boot is set to current: fallback to defaults")
cup = ComponentUpdateProvider()
else:
cup = ComponentUpdateProvider()

click.echo(cup.get_status(force))

Expand Down

0 comments on commit a6de521

Please sign in to comment.