Fix external_validate for Heat resources
External validate use _show_resource to check if Stack resource exists. Witout entity name and default client name, the validation will just pass. Add entity name to `OS::Heat::Stack` Add entity and default client name to `OS::Heat::SoftwareConfig` and `OS::Heat::SoftwareDeployment` Story: #1764947 Task: #17359 Change-Id: Ia0864aacf2951c711e99ce2c687f47af421110be
This commit is contained in:
parent
c739be7645
commit
2731d3da4f
|
@ -73,6 +73,8 @@ class RemoteStack(resource.Resource):
|
|||
"""
|
||||
default_client_name = 'heat'
|
||||
|
||||
entity = 'stacks'
|
||||
|
||||
PROPERTIES = (
|
||||
CONTEXT, TEMPLATE, TIMEOUT, PARAMETERS,
|
||||
) = (
|
||||
|
|
|
@ -44,6 +44,10 @@ class SoftwareConfig(resource.Resource):
|
|||
|
||||
support_status = support.SupportStatus(version='2014.1')
|
||||
|
||||
default_client_name = 'heat'
|
||||
|
||||
entity = 'software_configs'
|
||||
|
||||
PROPERTIES = (
|
||||
GROUP, CONFIG,
|
||||
OPTIONS,
|
||||
|
|
|
@ -72,6 +72,10 @@ class SoftwareDeployment(signal_responder.SignalResponder):
|
|||
|
||||
support_status = support.SupportStatus(version='2014.1')
|
||||
|
||||
default_client_name = 'heat'
|
||||
|
||||
entity = 'software_deployments'
|
||||
|
||||
PROPERTIES = (
|
||||
CONFIG, SERVER, INPUT_VALUES,
|
||||
DEPLOY_ACTIONS, NAME, SIGNAL_TRANSPORT
|
||||
|
|
Loading…
Reference in New Issue