Merge "Include "deployed" in valid deploy start states"

This commit is contained in:
Zuul 2024-02-15 15:57:13 +00:00 committed by Gerrit Code Review
commit 5b37af0ef6
2 changed files with 5 additions and 1 deletions

View File

@ -62,6 +62,10 @@ REMOVING = 'removing'
UNAVAILABLE = 'unavailable'
UNKNOWN = 'n/a'
VALID_DEPLOY_START_STATES = [
AVAILABLE,
DEPLOYED,
]
STATUS_DEVELOPEMENT = 'DEV'
STATUS_OBSOLETE = 'OBS'

View File

@ -1883,7 +1883,7 @@ class PatchController(PatchService):
success = False
# Check if release state is valid
elif release["state"] not in [constants.AVAILABLE]:
elif release["state"] not in constants.VALID_DEPLOY_START_STATES:
msg = "Software release state is invalid: %s" % release["state"]
LOG.error(msg)
msg_error += msg