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,7 +196,7 @@ class ResourceGroup(stack_resource.StackResource):
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
),
ATTR_ATTRIBUTES: attributes.Schema(

View File

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

View File

@ -75,12 +75,12 @@ class SwiftSignalHandle(resource.Resource):
TOKEN: attributes.Schema(
_('Tokens are not needed for Swift TempURLs. This attribute is '
'being kept for compatibility with the '
'OS::Heat::WaitConditionHandle resource'),
'OS::Heat::WaitConditionHandle resource.'),
cache_mode=attributes.Schema.CACHE_NONE,
type=attributes.Schema.STRING
),
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,
type=attributes.Schema.STRING
),
@ -90,7 +90,7 @@ class SwiftSignalHandle(resource.Resource):
'failure. You can signal success by adding '
'--data-binary \'{"status": "SUCCESS"}\' '
', or signal failure by adding '
'--data-binary \'{"status": "FAILURE"}\''),
'--data-binary \'{"status": "FAILURE"}\'.'),
cache_mode=attributes.Schema.CACHE_NONE,
type=attributes.Schema.STRING
),

View File

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