Skip to content

Commit

Permalink
Update the return of update_firmware for the image not exist case (so…
Browse files Browse the repository at this point in the history
…nic-net#306)

* update the return for update_firmware api's failure case when the image file doesn't exist

* update comments

* update comment

* update comment
  • Loading branch information
sujinmkang authored Sep 14, 2022
1 parent 75c055e commit 95c3aec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sonic_platform_base/component_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ def update_firmware(self, image_path):
Args:
image_path: A string, path to firmware image
Returns:
Boolean False if image_path doesn't exist instead of throwing an exception error
Nothing when the update is successful
Raises:
RuntimeError: update failed
"""
Expand Down

0 comments on commit 95c3aec

Please sign in to comment.