Fix deploy complete endpoint

Commit [1] introduced a bug on "deploy complete" endpoint.
This commit fixes the typo that caused the bug.

[1] https://review.opendev.org/c/starlingx/update/+/888577

Test Plan
PASS: apply a patch from upload to deploy complete successfully

Story: 2010676
Task: 48979

Change-Id: I7f64207ceeb2bf6431470d260da860c93b54a604
Signed-off-by: Heitor Matsui <heitorvieira.matsui@windriver.com>
This commit is contained in:
Heitor Matsui 2023-10-20 18:57:38 -03:00
parent e6744eb9f5
commit e222c1b9dc
1 changed files with 1 additions and 1 deletions

View File

@ -2204,7 +2204,7 @@ class PatchController(PatchService):
self.release_data.metadata[release_id]["state"] = constants.DEPLOYED
try:
shutil.move("%s/%s-metadata.xml" % (constants.DEPLOYING_COMPLETE, release_id),
shutil.move("%s/%s-metadata.xml" % (constants.DEPLOYING_COMPLETE_DIR, release_id),
"%s/%s-metadata.xml" % (constants.DEPLOYED_DIR, release_id))
msg_info += "%s has been deployed\n" % release_id
except shutil.Error: