Merge "Explicitly naming resources in "unsupported" warnings"
This commit is contained in:
commit
8b02644d63
@ -328,8 +328,15 @@ class ResourceRegistry(object):
|
|||||||
if isinstance(info, ClassResourceInfo):
|
if isinstance(info, ClassResourceInfo):
|
||||||
if info.value.support_status.status != support.SUPPORTED:
|
if info.value.support_status.status != support.SUPPORTED:
|
||||||
if info.value.support_status.message is not None:
|
if info.value.support_status.message is not None:
|
||||||
LOG.warning(_LW("%s"), six.text_type(
|
details = {
|
||||||
info.value.support_status.message))
|
'name': info.name,
|
||||||
|
'status': six.text_type(
|
||||||
|
info.value.support_status.status),
|
||||||
|
'message': six.text_type(
|
||||||
|
info.value.support_status.message)
|
||||||
|
}
|
||||||
|
LOG.warning(_LW('%(name)s is %(status)s. %(message)s'),
|
||||||
|
details)
|
||||||
|
|
||||||
info.user_resource = (self.global_registry is not None)
|
info.user_resource = (self.global_registry is not None)
|
||||||
registry[name] = info
|
registry[name] = info
|
||||||
|
@ -657,10 +657,8 @@ class SoftwareDeploymentGroup(resource_group.ResourceGroup):
|
|||||||
|
|
||||||
class SoftwareDeployments(SoftwareDeploymentGroup):
|
class SoftwareDeployments(SoftwareDeploymentGroup):
|
||||||
|
|
||||||
deprecation_msg = _('The resource OS::Heat::SoftwareDeployments is '
|
deprecation_msg = _('Use of this resource is discouraged. Please use '
|
||||||
'deprecated and usage is discouraged. Please use '
|
'OS::Heat::SoftwareDeploymentGroup instead.')
|
||||||
'resource OS::Heat::SoftwareDeploymentGroup '
|
|
||||||
'instead.')
|
|
||||||
support_status = support.SupportStatus(status=support.DEPRECATED,
|
support_status = support.SupportStatus(status=support.DEPRECATED,
|
||||||
message=deprecation_msg,
|
message=deprecation_msg,
|
||||||
version='2014.2')
|
version='2014.2')
|
||||||
|
@ -235,10 +235,8 @@ class StructuredDeploymentGroup(sd.SoftwareDeploymentGroup):
|
|||||||
|
|
||||||
class StructuredDeployments(StructuredDeploymentGroup):
|
class StructuredDeployments(StructuredDeploymentGroup):
|
||||||
|
|
||||||
deprecation_msg = _('The resource OS::Heat::StructuredDeployments is '
|
deprecation_msg = _('Use of this resource is discouraged. Please use '
|
||||||
'deprecated and usage is discouraged. Please use '
|
'OS::Heat::StructuredDeploymentGroup instead.')
|
||||||
'resource OS::Heat::StructuredDeploymentGroup '
|
|
||||||
'instead.')
|
|
||||||
support_status = support.SupportStatus(status=support.DEPRECATED,
|
support_status = support.SupportStatus(status=support.DEPRECATED,
|
||||||
message=deprecation_msg,
|
message=deprecation_msg,
|
||||||
version='2014.2')
|
version='2014.2')
|
||||||
|
@ -32,8 +32,7 @@ class ExtraRoute(neutron.NeutronResource):
|
|||||||
|
|
||||||
support_status = support.SupportStatus(
|
support_status = support.SupportStatus(
|
||||||
status=support.UNSUPPORTED,
|
status=support.UNSUPPORTED,
|
||||||
message=_('The resource OS::Neutron::ExtraRoute is not supported, '
|
message=_('Use this resource at your own risk.'))
|
||||||
'use at your own risk.'))
|
|
||||||
|
|
||||||
PROPERTIES = (
|
PROPERTIES = (
|
||||||
ROUTER_ID, DESTINATION, NEXTHOP,
|
ROUTER_ID, DESTINATION, NEXTHOP,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user