Skip to content

Commit 3e46c54

Browse files
PeterTSW-ECCharlieChenEC
authored andcommitted
[Bug] SONiC Extension Packages Migration Error During New SONiC Image Install
* In 17/05/2023, SONiC updates the format of CLI section in the manifest.json. * The implementation was updated in 202311 or later branches. * However, the PR #2753 reported there is a error occur when the CLI migration. * The root cause is occurred while a CLI field (show/config/clear) is empty (''). * This PR modifies the parser of the cli_plugins field in the manifest.py.
1 parent 22ca1a3 commit 3e46c54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sonic_package_manager/manifest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def marshal(self, value):
8888
raise ManifestError(f'{value} has items not of type {self.type.__name__}')
8989
return value
9090
elif isinstance(value, self.type):
91-
return [value]
91+
return [] if not value else [value]
9292
else:
9393
raise ManifestError(f'{value} is not of type {self.type.__name__}')
9494

0 commit comments

Comments
 (0)