Fix upgrade script 81 to support additional port parameter

Commit [1] added support to the new port parameter used by
Unified Software Management framework. Script 81 needs to be
changed as well since it is returning an "Invalid option"
error during "software deploy start" for upgrade.

This commit enables script 81 to ignore the optional port
parameter so that it won't fail during the deploy start
operation.

Test Plan
PASS: "software deploy start" command executed successfully
      for the upgrade scenario
PASS: legacy upgrade activate stx8 -> stx9 executed successfully

[1] https://review.opendev.org/c/starlingx/config/+/896959

Story: 2010676
Task: 49231

Change-Id: I22f1ef727bae3773904285c6a50fa49956840b17
Signed-off-by: Heitor Matsui <heitorvieira.matsui@windriver.com>
This commit is contained in:
Heitor Matsui 2023-12-11 17:09:25 -03:00
parent aff99f4245
commit e8b3e58a9d
1 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,10 @@ def main():
to_release = sys.argv[arg]
elif arg == 3:
action = sys.argv[arg]
elif arg == 4:
# optional port parameter for USM upgrade
# port = sys.argv[arg]
pass
else:
print("Invalid option %s." % sys.argv[arg])
return 1