Fix all attributes error for custom guidelines

There are several errors during attributes descriptions
checking by custom guidelines. Need to fix them for
successful pep8 running.

implements bp custom-guidelines

Change-Id: I3df75c6343217723fd4490f9e70eb2d8499eb5ae
This commit is contained in:
Peter Razumovsky 2016-02-18 14:53:49 +03:00
parent 1d16909dfd
commit 2da713fa91
5 changed files with 12 additions and 12 deletions

View File

@ -196,12 +196,12 @@ class ResourceGroup(stack_resource.StackResource):
attributes_schema = { attributes_schema = {
REFS: attributes.Schema( REFS: attributes.Schema(
_("A list of resource IDs for the resources in the group"), _("A list of resource IDs for the resources in the group."),
type=attributes.Schema.LIST type=attributes.Schema.LIST
), ),
ATTR_ATTRIBUTES: attributes.Schema( ATTR_ATTRIBUTES: attributes.Schema(
_("A map of resource names to the specified attribute of each " _("A map of resource names to the specified attribute of each "
"individual resource. " "individual resource. "
"Requires heat_template_version: 2014-10-16."), "Requires heat_template_version: 2014-10-16."),
support_status=support.SupportStatus(version='2014.2'), support_status=support.SupportStatus(version='2014.2'),
type=attributes.Schema.MAP type=attributes.Schema.MAP

View File

@ -180,7 +180,7 @@ class SoftwareDeployment(signal_responder.SignalResponder):
type=attributes.Schema.STRING type=attributes.Schema.STRING
), ),
STATUS_CODE: attributes.Schema( STATUS_CODE: attributes.Schema(
_("Returned status code from the configuration execution"), _("Returned status code from the configuration execution."),
type=attributes.Schema.STRING type=attributes.Schema.STRING
), ),
} }

View File

@ -73,24 +73,24 @@ class SwiftSignalHandle(resource.Resource):
attributes_schema = { attributes_schema = {
TOKEN: attributes.Schema( TOKEN: attributes.Schema(
_('Tokens are not needed for Swift TempURLs. This attribute is ' _('Tokens are not needed for Swift TempURLs. This attribute is '
'being kept for compatibility with the ' 'being kept for compatibility with the '
'OS::Heat::WaitConditionHandle resource'), 'OS::Heat::WaitConditionHandle resource.'),
cache_mode=attributes.Schema.CACHE_NONE, cache_mode=attributes.Schema.CACHE_NONE,
type=attributes.Schema.STRING type=attributes.Schema.STRING
), ),
ENDPOINT: attributes.Schema( ENDPOINT: attributes.Schema(
_('Endpoint/url which can be used for signalling handle'), _('Endpoint/url which can be used for signalling handle.'),
cache_mode=attributes.Schema.CACHE_NONE, cache_mode=attributes.Schema.CACHE_NONE,
type=attributes.Schema.STRING type=attributes.Schema.STRING
), ),
CURL_CLI: attributes.Schema( CURL_CLI: attributes.Schema(
_('Convenience attribute, provides curl CLI command ' _('Convenience attribute, provides curl CLI command '
'prefix, which can be used for signalling handle completion or ' 'prefix, which can be used for signalling handle completion or '
'failure. You can signal success by adding ' 'failure. You can signal success by adding '
'--data-binary \'{"status": "SUCCESS"}\' ' '--data-binary \'{"status": "SUCCESS"}\' '
', or signal failure by adding ' ', or signal failure by adding '
'--data-binary \'{"status": "FAILURE"}\''), '--data-binary \'{"status": "FAILURE"}\'.'),
cache_mode=attributes.Schema.CACHE_NONE, cache_mode=attributes.Schema.CACHE_NONE,
type=attributes.Schema.STRING type=attributes.Schema.STRING
), ),

View File

@ -103,8 +103,8 @@ class HeatWaitConditionHandle(wc_base.BaseWaitConditionHandle):
CURL_CLI: attributes.Schema( CURL_CLI: attributes.Schema(
_('Convenience attribute, provides curl CLI command ' _('Convenience attribute, provides curl CLI command '
'prefix, which can be used for signalling handle completion or ' 'prefix, which can be used for signalling handle completion or '
'failure when signal_transport is set to TOKEN_SIGNAL. You ' 'failure when signal_transport is set to TOKEN_SIGNAL. You '
' can signal success by adding ' 'can signal success by adding '
'--data-binary \'{"status": "SUCCESS"}\' ' '--data-binary \'{"status": "SUCCESS"}\' '
', or signal failure by adding ' ', or signal failure by adding '
'--data-binary \'{"status": "FAILURE"}\'. ' '--data-binary \'{"status": "FAILURE"}\'. '

View File

@ -58,8 +58,8 @@ class HeatCustomGuidelines(object):
self._check_resource_schemas(cls, cls.properties_schema, self._check_resource_schemas(cls, cls.properties_schema,
'property') 'property')
# check attributes' descriptions # check attributes' descriptions
#self._check_resource_schemas(cls, cls.attributes_schema, self._check_resource_schemas(cls, cls.attributes_schema,
# 'attribute') 'attribute')
# check methods descriptions # check methods descriptions
#self._check_resource_methods(cls) #self._check_resource_methods(cls)