Merge "Include "deployed" in valid deploy start states"
This commit is contained in:
commit
5b37af0ef6
|
@ -62,6 +62,10 @@ REMOVING = 'removing'
|
||||||
UNAVAILABLE = 'unavailable'
|
UNAVAILABLE = 'unavailable'
|
||||||
UNKNOWN = 'n/a'
|
UNKNOWN = 'n/a'
|
||||||
|
|
||||||
|
VALID_DEPLOY_START_STATES = [
|
||||||
|
AVAILABLE,
|
||||||
|
DEPLOYED,
|
||||||
|
]
|
||||||
|
|
||||||
STATUS_DEVELOPEMENT = 'DEV'
|
STATUS_DEVELOPEMENT = 'DEV'
|
||||||
STATUS_OBSOLETE = 'OBS'
|
STATUS_OBSOLETE = 'OBS'
|
||||||
|
|
|
@ -1883,7 +1883,7 @@ class PatchController(PatchService):
|
||||||
success = False
|
success = False
|
||||||
|
|
||||||
# Check if release state is valid
|
# 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"]
|
msg = "Software release state is invalid: %s" % release["state"]
|
||||||
LOG.error(msg)
|
LOG.error(msg)
|
||||||
msg_error += msg
|
msg_error += msg
|
||||||
|
|
Loading…
Reference in New Issue