Skip to content

Commit a6de521

Browse files
authored
[fwutil]: Fix firmware update command. (sonic-net#895)
Signed-off-by: Nazarii Hnydyn <[email protected]>
1 parent d950192 commit a6de521

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

fwutil/main.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,6 @@ def update(ctx, yes, force, image):
227227
squashfs = None
228228

229229
try:
230-
cup = ComponentUpdateProvider()
231-
232230
if image == IMAGE_NEXT:
233231
squashfs = SquashFs()
234232

@@ -237,6 +235,9 @@ def update(ctx, yes, force, image):
237235
cup = ComponentUpdateProvider(fs_path)
238236
else:
239237
log_helper.print_warning("Next boot is set to current: fallback to defaults")
238+
cup = ComponentUpdateProvider()
239+
else:
240+
cup = ComponentUpdateProvider()
240241

241242
click.echo(cup.get_status(force))
242243

0 commit comments

Comments
 (0)