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 info.value.support_status.status != support.SUPPORTED:
|
||||
if info.value.support_status.message is not None:
|
||||
LOG.warning(_LW("%s"), six.text_type(
|
||||
info.value.support_status.message))
|
||||
details = {
|
||||
'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)
|
||||
registry[name] = info
|
||||
|
@ -657,10 +657,8 @@ class SoftwareDeploymentGroup(resource_group.ResourceGroup):
|
||||
|
||||
class SoftwareDeployments(SoftwareDeploymentGroup):
|
||||
|
||||
deprecation_msg = _('The resource OS::Heat::SoftwareDeployments is '
|
||||
'deprecated and usage is discouraged. Please use '
|
||||
'resource OS::Heat::SoftwareDeploymentGroup '
|
||||
'instead.')
|
||||
deprecation_msg = _('Use of this resource is discouraged. Please use '
|
||||
'OS::Heat::SoftwareDeploymentGroup instead.')
|
||||
support_status = support.SupportStatus(status=support.DEPRECATED,
|
||||
message=deprecation_msg,
|
||||
version='2014.2')
|
||||
|
@ -235,10 +235,8 @@ class StructuredDeploymentGroup(sd.SoftwareDeploymentGroup):
|
||||
|
||||
class StructuredDeployments(StructuredDeploymentGroup):
|
||||
|
||||
deprecation_msg = _('The resource OS::Heat::StructuredDeployments is '
|
||||
'deprecated and usage is discouraged. Please use '
|
||||
'resource OS::Heat::StructuredDeploymentGroup '
|
||||
'instead.')
|
||||
deprecation_msg = _('Use of this resource is discouraged. Please use '
|
||||
'OS::Heat::StructuredDeploymentGroup instead.')
|
||||
support_status = support.SupportStatus(status=support.DEPRECATED,
|
||||
message=deprecation_msg,
|
||||
version='2014.2')
|
||||
|
@ -32,8 +32,7 @@ class ExtraRoute(neutron.NeutronResource):
|
||||
|
||||
support_status = support.SupportStatus(
|
||||
status=support.UNSUPPORTED,
|
||||
message=_('The resource OS::Neutron::ExtraRoute is not supported, '
|
||||
'use at your own risk.'))
|
||||
message=_('Use this resource at your own risk.'))
|
||||
|
||||
PROPERTIES = (
|
||||
ROUTER_ID, DESTINATION, NEXTHOP,
|
||||
|
Loading…
Reference in New Issue
Block a user