Skip to content

Commit 6722b4e

Browse files
sujinmkangqiluo-msft
authored andcommitted
Update the return of update_firmware for the image not exist case (#306)
* update the return for update_firmware api's failure case when the image file doesn't exist * update comments * update comment * update comment
1 parent 5c90100 commit 6722b4e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sonic_platform_base/component_base.py

+4
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ def update_firmware(self, image_path):
9999
Args:
100100
image_path: A string, path to firmware image
101101
102+
Returns:
103+
Boolean False if image_path doesn't exist instead of throwing an exception error
104+
Nothing when the update is successful
105+
102106
Raises:
103107
RuntimeError: update failed
104108
"""

0 commit comments

Comments
 (0)