Enable pep8 E128 test
Enable E128 continuation line under-indented for visual indent Change-Id: If662f729e7aacdd439b38c5e5630d74afefebcc6
This commit is contained in:
parent
2cef6de886
commit
ec2530b975
@ -49,19 +49,19 @@ class HeatShell(object):
|
|||||||
# they should be provided by python-keystoneclient. We will need to
|
# they should be provided by python-keystoneclient. We will need to
|
||||||
# refactor this code once this functionality is avaible in
|
# refactor this code once this functionality is avaible in
|
||||||
# python-keystoneclient.
|
# python-keystoneclient.
|
||||||
parser.add_argument('-k', '--insecure',
|
parser.add_argument(
|
||||||
default=False,
|
'-k', '--insecure', default=False, action='store_true',
|
||||||
action='store_true',
|
help=_('Explicitly allow heatclient to perform '
|
||||||
help=_('Explicitly allow heatclient to perform '
|
'\"insecure SSL\" (https) requests. '
|
||||||
'\"insecure SSL\" (https) requests. The server\'s '
|
'The server\'s certificate will not be verified '
|
||||||
'certificate will not be verified against any '
|
'against any certificate authorities. '
|
||||||
'certificate authorities. This option should '
|
'This option should be used with caution.'))
|
||||||
'be used with caution.'))
|
|
||||||
|
|
||||||
parser.add_argument('--os-cert',
|
parser.add_argument(
|
||||||
help=_('Path of certificate file to use in SSL '
|
'--os-cert',
|
||||||
'connection. This file can optionally be '
|
help=_('Path of certificate file to use in SSL connection. '
|
||||||
'prepended with the private key.'))
|
'This file can optionally be prepended with '
|
||||||
|
'the private key.'))
|
||||||
|
|
||||||
# for backward compatibility only
|
# for backward compatibility only
|
||||||
parser.add_argument('--cert-file',
|
parser.add_argument('--cert-file',
|
||||||
@ -71,8 +71,9 @@ class HeatShell(object):
|
|||||||
|
|
||||||
parser.add_argument('--os-key',
|
parser.add_argument('--os-key',
|
||||||
help=_('Path of client key to use in SSL '
|
help=_('Path of client key to use in SSL '
|
||||||
'connection. This option is not necessary '
|
'connection. This option is not necessary '
|
||||||
'if your key is prepended to your cert file.'))
|
'if your key is prepended to your cert '
|
||||||
|
'file.'))
|
||||||
|
|
||||||
parser.add_argument('--key-file',
|
parser.add_argument('--key-file',
|
||||||
dest='os_key',
|
dest='os_key',
|
||||||
@ -84,9 +85,9 @@ class HeatShell(object):
|
|||||||
dest='os_cacert',
|
dest='os_cacert',
|
||||||
default=utils.env('OS_CACERT'),
|
default=utils.env('OS_CACERT'),
|
||||||
help=_('Path of CA TLS certificate(s) used to '
|
help=_('Path of CA TLS certificate(s) used to '
|
||||||
'verify the remote server\'s certificate. '
|
'verify the remote server\'s certificate. '
|
||||||
'Without this option glance looks for the '
|
'Without this option glance looks for the '
|
||||||
'default system CA certificates.'))
|
'default system CA certificates.'))
|
||||||
|
|
||||||
parser.add_argument('--ca-file',
|
parser.add_argument('--ca-file',
|
||||||
dest='os_cacert',
|
dest='os_cacert',
|
||||||
@ -290,7 +291,7 @@ class HeatShell(object):
|
|||||||
default=utils.env('OS_NO_CLIENT_AUTH'),
|
default=utils.env('OS_NO_CLIENT_AUTH'),
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help=(_("Do not contact keystone for a token. "
|
help=(_("Do not contact keystone for a token. "
|
||||||
"Defaults to %(value)s.") %
|
"Defaults to %(value)s.") %
|
||||||
{'value': 'env[OS_NO_CLIENT_AUTH]'}))
|
{'value': 'env[OS_NO_CLIENT_AUTH]'}))
|
||||||
|
|
||||||
parser.add_argument('--heat-url',
|
parser.add_argument('--heat-url',
|
||||||
@ -334,17 +335,17 @@ class HeatShell(object):
|
|||||||
self._append_global_identity_args(parser)
|
self._append_global_identity_args(parser)
|
||||||
|
|
||||||
if osprofiler_profiler:
|
if osprofiler_profiler:
|
||||||
parser.add_argument('--profile',
|
parser.add_argument(
|
||||||
metavar='HMAC_KEY',
|
'--profile',
|
||||||
help=_('HMAC key to use for encrypting '
|
metavar='HMAC_KEY',
|
||||||
'context data for performance profiling of '
|
help=_('HMAC key to use for encrypting context data '
|
||||||
'operation. This key should be the value of '
|
'for performance profiling of operation. '
|
||||||
'HMAC key configured in osprofiler middleware '
|
'This key should be the value of HMAC key '
|
||||||
'in heat, it is specified in the paste '
|
'configured in osprofiler middleware in heat, '
|
||||||
'configuration (/etc/heat/api-paste.ini). '
|
'it is specified in the paste configuration '
|
||||||
'Without the key, profiling will not be '
|
'(/etc/heat/api-paste.ini). Without the key, '
|
||||||
'triggered even if osprofiler is enabled '
|
'profiling will not be triggered '
|
||||||
'on server side.'))
|
'even if osprofiler is enabled on server side.'))
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
def get_subcommand_parser(self, version):
|
def get_subcommand_parser(self, version):
|
||||||
@ -546,23 +547,23 @@ class HeatShell(object):
|
|||||||
return 0
|
return 0
|
||||||
|
|
||||||
if not args.os_username and not args.os_auth_token:
|
if not args.os_username and not args.os_auth_token:
|
||||||
raise exc.CommandError(_("You must provide a username via"
|
raise exc.CommandError(_("You must provide a username via either "
|
||||||
" either --os-username or env[OS_USERNAME]"
|
"--os-username or env[OS_USERNAME] "
|
||||||
" or a token via --os-auth-token or"
|
"or a token via --os-auth-token or "
|
||||||
" env[OS_AUTH_TOKEN]"))
|
"env[OS_AUTH_TOKEN]"))
|
||||||
|
|
||||||
if not args.os_password and not args.os_auth_token:
|
if not args.os_password and not args.os_auth_token:
|
||||||
raise exc.CommandError(_("You must provide a password via"
|
raise exc.CommandError(_("You must provide a password via either "
|
||||||
" either --os-password or env[OS_PASSWORD]"
|
"--os-password or env[OS_PASSWORD] "
|
||||||
" or a token via --os-auth-token or"
|
"or a token via --os-auth-token or "
|
||||||
" env[OS_AUTH_TOKEN]"))
|
"env[OS_AUTH_TOKEN]"))
|
||||||
|
|
||||||
if args.os_no_client_auth:
|
if args.os_no_client_auth:
|
||||||
if not args.heat_url:
|
if not args.heat_url:
|
||||||
raise exc.CommandError(_("If you specify --os-no-client-auth"
|
raise exc.CommandError(_("If you specify --os-no-client-auth "
|
||||||
" you must also specify a Heat API URL"
|
"you must also specify a Heat API "
|
||||||
" via either --heat-url or"
|
"URL via either --heat-url or "
|
||||||
" env[HEAT_URL]"))
|
"env[HEAT_URL]"))
|
||||||
else:
|
else:
|
||||||
# Tenant/project name or ID is needed to make keystoneclient
|
# Tenant/project name or ID is needed to make keystoneclient
|
||||||
# retrieve a service catalog, it's not required if
|
# retrieve a service catalog, it's not required if
|
||||||
@ -570,20 +571,18 @@ class HeatShell(object):
|
|||||||
|
|
||||||
if not (args.os_tenant_id or args.os_tenant_name or
|
if not (args.os_tenant_id or args.os_tenant_name or
|
||||||
args.os_project_id or args.os_project_name):
|
args.os_project_id or args.os_project_name):
|
||||||
raise exc.CommandError(_("You must provide a tenant id via"
|
raise exc.CommandError(
|
||||||
" either --os-tenant-id or"
|
_("You must provide a tenant id via either "
|
||||||
" env[OS_TENANT_ID] or a tenant name"
|
"--os-tenant-id or env[OS_TENANT_ID] or a tenant name "
|
||||||
" via either --os-tenant-name or"
|
"via either --os-tenant-name or env[OS_TENANT_NAME] "
|
||||||
" env[OS_TENANT_NAME] or a project id"
|
"or a project id via either --os-project-id or "
|
||||||
" via either --os-project-id or"
|
"env[OS_PROJECT_ID] or a project name via "
|
||||||
" env[OS_PROJECT_ID] or a project"
|
"either --os-project-name or env[OS_PROJECT_NAME]"))
|
||||||
" name via either --os-project-name or"
|
|
||||||
" env[OS_PROJECT_NAME]"))
|
|
||||||
|
|
||||||
if not args.os_auth_url:
|
if not args.os_auth_url:
|
||||||
raise exc.CommandError(_("You must provide an auth url via"
|
raise exc.CommandError(_("You must provide an auth url via "
|
||||||
" either --os-auth-url or via"
|
"either --os-auth-url or via "
|
||||||
" env[OS_AUTH_URL]"))
|
"env[OS_AUTH_URL]"))
|
||||||
|
|
||||||
kwargs = {
|
kwargs = {
|
||||||
'insecure': args.insecure,
|
'insecure': args.insecure,
|
||||||
|
@ -116,11 +116,11 @@ def mock_script_event_list(
|
|||||||
{"event_time": "2013-12-05T14:14:32",
|
{"event_time": "2013-12-05T14:14:32",
|
||||||
"id": rsrc_eventid2,
|
"id": rsrc_eventid2,
|
||||||
"links": [{"href": "http://heat.example.com:8004/foo",
|
"links": [{"href": "http://heat.example.com:8004/foo",
|
||||||
"rel": "self"},
|
"rel": "self"},
|
||||||
{"href": "http://heat.example.com:8004/foo2",
|
{"href": "http://heat.example.com:8004/foo2",
|
||||||
"rel": "resource"},
|
"rel": "resource"},
|
||||||
{"href": "http://heat.example.com:8004/foo3",
|
{"href": "http://heat.example.com:8004/foo3",
|
||||||
"rel": "stack"}],
|
"rel": "stack"}],
|
||||||
"logical_resource_id": "myDeployment",
|
"logical_resource_id": "myDeployment",
|
||||||
"physical_resource_id": "bce15ec4-8919-4a02-8a90-680960fb3731",
|
"physical_resource_id": "bce15ec4-8919-4a02-8a90-680960fb3731",
|
||||||
"resource_name": resource_name if resource_name else "testresource",
|
"resource_name": resource_name if resource_name else "testresource",
|
||||||
|
@ -72,8 +72,8 @@ def _authenticated_fetcher(hc):
|
|||||||
help=_('URL to retrieve template object (e.g. from swift).'))
|
help=_('URL to retrieve template object (e.g. from swift).'))
|
||||||
@utils.arg('-c', '--create-timeout', metavar='<TIMEOUT>',
|
@utils.arg('-c', '--create-timeout', metavar='<TIMEOUT>',
|
||||||
type=int,
|
type=int,
|
||||||
help=_('Stack creation timeout in minutes.'
|
help=_('Stack creation timeout in minutes. '
|
||||||
' DEPRECATED use %(arg)s instead.')
|
'DEPRECATED use %(arg)s instead.')
|
||||||
% {'arg': '--timeout'})
|
% {'arg': '--timeout'})
|
||||||
@utils.arg('-t', '--timeout', metavar='<TIMEOUT>',
|
@utils.arg('-t', '--timeout', metavar='<TIMEOUT>',
|
||||||
type=int,
|
type=int,
|
||||||
@ -82,13 +82,13 @@ def _authenticated_fetcher(hc):
|
|||||||
help=_('Enable rollback on create/update failure.'))
|
help=_('Enable rollback on create/update failure.'))
|
||||||
@utils.arg('-P', '--parameters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
@utils.arg('-P', '--parameters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||||
help=_('Parameter values used to create the stack. '
|
help=_('Parameter values used to create the stack. '
|
||||||
'This can be specified multiple times, or once with parameters '
|
'This can be specified multiple times, or once with '
|
||||||
'separated by a semicolon.'),
|
'parameters separated by a semicolon.'),
|
||||||
action='append')
|
action='append')
|
||||||
@utils.arg('-Pf', '--parameter-file', metavar='<KEY=FILE>',
|
@utils.arg('-Pf', '--parameter-file', metavar='<KEY=FILE>',
|
||||||
help=_('Parameter values from file used to create the stack. '
|
help=_('Parameter values from file used to create the stack. '
|
||||||
'This can be specified multiple times. Parameter value '
|
'This can be specified multiple times. Parameter value '
|
||||||
'would be the content of the file'),
|
'would be the content of the file'),
|
||||||
action='append')
|
action='append')
|
||||||
@utils.arg('--poll', metavar='SECONDS', type=int, nargs='?', const=5,
|
@utils.arg('--poll', metavar='SECONDS', type=int, nargs='?', const=5,
|
||||||
help=_('Poll and report events until stack completes. '
|
help=_('Poll and report events until stack completes. '
|
||||||
@ -174,8 +174,8 @@ def hooks_to_env(env, arg_hooks, hook):
|
|||||||
action='append')
|
action='append')
|
||||||
@utils.arg('-c', '--create-timeout', metavar='<TIMEOUT>',
|
@utils.arg('-c', '--create-timeout', metavar='<TIMEOUT>',
|
||||||
type=int,
|
type=int,
|
||||||
help=_('Stack creation timeout in minutes.'
|
help=_('Stack creation timeout in minutes. '
|
||||||
' DEPRECATED use %(arg)s instead.')
|
'DEPRECATED use %(arg)s instead.')
|
||||||
% {'arg': '--timeout'})
|
% {'arg': '--timeout'})
|
||||||
@utils.arg('-t', '--timeout', metavar='<TIMEOUT>',
|
@utils.arg('-t', '--timeout', metavar='<TIMEOUT>',
|
||||||
type=int,
|
type=int,
|
||||||
@ -185,9 +185,9 @@ def hooks_to_env(env, arg_hooks, hook):
|
|||||||
@utils.arg('-r', '--enable-rollback', default=False, action="store_true",
|
@utils.arg('-r', '--enable-rollback', default=False, action="store_true",
|
||||||
help=_('Enable rollback on create/update failure.'))
|
help=_('Enable rollback on create/update failure.'))
|
||||||
@utils.arg('-P', '--parameters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
@utils.arg('-P', '--parameters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||||
help=_('Parameter values used to create the stack. '
|
help=_('Parameter values used to create the stack. This can be '
|
||||||
'This can be specified multiple times, or once with parameters '
|
'specified multiple times, or once with parameters '
|
||||||
'separated by a semicolon.'),
|
'separated by a semicolon.'),
|
||||||
action='append')
|
action='append')
|
||||||
@utils.arg('name', metavar='<STACK_NAME>',
|
@utils.arg('name', metavar='<STACK_NAME>',
|
||||||
help=_('Name of the stack to adopt.'))
|
help=_('Name of the stack to adopt.'))
|
||||||
@ -239,21 +239,21 @@ def do_stack_adopt(hc, args):
|
|||||||
@utils.arg('-o', '--template-object', metavar='<URL>',
|
@utils.arg('-o', '--template-object', metavar='<URL>',
|
||||||
help=_('URL to retrieve template object (e.g. from swift)'))
|
help=_('URL to retrieve template object (e.g. from swift)'))
|
||||||
@utils.arg('-t', '--timeout', metavar='<TIMEOUT>', type=int,
|
@utils.arg('-t', '--timeout', metavar='<TIMEOUT>', type=int,
|
||||||
help=_('Stack creation timeout in minutes. This is only used during'
|
help=_('Stack creation timeout in minutes. This is only used '
|
||||||
'validation in preview.'))
|
'during validation in preview.'))
|
||||||
@utils.arg('-r', '--enable-rollback', default=False, action="store_true",
|
@utils.arg('-r', '--enable-rollback', default=False, action="store_true",
|
||||||
help=_('Enable rollback on failure. This option is not used during'
|
help=_('Enable rollback on failure. This option is not used during '
|
||||||
'preview and exists only for symmetry with %(cmd)s.')
|
'preview and exists only for symmetry with %(cmd)s.')
|
||||||
% {'cmd': 'stack-create'})
|
% {'cmd': 'stack-create'})
|
||||||
@utils.arg('-P', '--parameters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
@utils.arg('-P', '--parameters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||||
help=_('Parameter values used to preview the stack. '
|
help=_('Parameter values used to preview the stack. '
|
||||||
'This can be specified multiple times, or once with parameters '
|
'This can be specified multiple times, or once with '
|
||||||
'separated by semicolon.'),
|
'parameters separated by semicolon.'),
|
||||||
action='append')
|
action='append')
|
||||||
@utils.arg('-Pf', '--parameter-file', metavar='<KEY=FILE>',
|
@utils.arg('-Pf', '--parameter-file', metavar='<KEY=FILE>',
|
||||||
help=_('Parameter values from file used to create the stack. '
|
help=_('Parameter values from file used to create the stack. '
|
||||||
'This can be specified multiple times. Parameter value '
|
'This can be specified multiple times. Parameter value '
|
||||||
'would be the content of the file'),
|
'would be the content of the file'),
|
||||||
action='append')
|
action='append')
|
||||||
@utils.arg('name', metavar='<STACK_NAME>',
|
@utils.arg('name', metavar='<STACK_NAME>',
|
||||||
help=_('Name of the stack to preview.'))
|
help=_('Name of the stack to preview.'))
|
||||||
@ -319,8 +319,8 @@ def do_stack_delete(hc, args):
|
|||||||
|
|
||||||
@utils.arg('-O', '--output-file', metavar='<FILE>',
|
@utils.arg('-O', '--output-file', metavar='<FILE>',
|
||||||
help=_('file to output abandon result. '
|
help=_('file to output abandon result. '
|
||||||
'If the option is specified, the result will be'
|
'If the option is specified, the result will be '
|
||||||
' output into <FILE>.'))
|
'output into <FILE>.'))
|
||||||
@utils.arg('id', metavar='<NAME or ID>',
|
@utils.arg('id', metavar='<NAME or ID>',
|
||||||
help=_('Name or ID of stack to abandon.'))
|
help=_('Name or ID of stack to abandon.'))
|
||||||
def do_stack_abandon(hc, args):
|
def do_stack_abandon(hc, args):
|
||||||
@ -418,42 +418,44 @@ def do_stack_show(hc, args):
|
|||||||
help=_('Stack update timeout in minutes.'))
|
help=_('Stack update timeout in minutes.'))
|
||||||
@utils.arg('-r', '--enable-rollback', default=False, action="store_true",
|
@utils.arg('-r', '--enable-rollback', default=False, action="store_true",
|
||||||
help=_('DEPRECATED! Use %(arg)s argument instead. '
|
help=_('DEPRECATED! Use %(arg)s argument instead. '
|
||||||
'Enable rollback on stack update failure. '
|
'Enable rollback on stack update failure. '
|
||||||
'NOTE: default behavior is now to use the rollback value '
|
'NOTE: default behavior is now to use the rollback value '
|
||||||
'of existing stack.')
|
'of existing stack.')
|
||||||
% {'arg': '--rollback'})
|
% {'arg': '--rollback'})
|
||||||
@utils.arg('--rollback', default=None, metavar='<VALUE>',
|
@utils.arg('--rollback', default=None, metavar='<VALUE>',
|
||||||
help=_('Set rollback on update failure. '
|
help=_('Set rollback on update failure. '
|
||||||
'Values %(true)s set rollback to enabled. '
|
'Values %(true)s set rollback to enabled. '
|
||||||
'Values %(false)s set rollback to disabled. '
|
'Values %(false)s set rollback to disabled. '
|
||||||
'Default is to use the value of existing stack to be updated.')
|
'Default is to use the value of existing stack to be '
|
||||||
|
'updated.')
|
||||||
% {'true': strutils.TRUE_STRINGS, 'false': strutils.FALSE_STRINGS})
|
% {'true': strutils.TRUE_STRINGS, 'false': strutils.FALSE_STRINGS})
|
||||||
@utils.arg('-y', '--dry-run', default=False, action="store_true",
|
@utils.arg('-y', '--dry-run', default=False, action="store_true",
|
||||||
help='Do not actually perform the stack update, but show what '
|
help='Do not actually perform the stack update, but show what '
|
||||||
'would be changed')
|
'would be changed')
|
||||||
@utils.arg('-P', '--parameters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
@utils.arg('-P', '--parameters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||||
help=_('Parameter values used to create the stack. '
|
help=_('Parameter values used to create the stack. '
|
||||||
'This can be specified multiple times, or once with parameters '
|
'This can be specified multiple times, or once with '
|
||||||
'separated by a semicolon.'),
|
'parameters separated by a semicolon.'),
|
||||||
action='append')
|
action='append')
|
||||||
@utils.arg('-Pf', '--parameter-file', metavar='<KEY=FILE>',
|
@utils.arg('-Pf', '--parameter-file', metavar='<KEY=FILE>',
|
||||||
help=_('Parameter values from file used to create the stack. '
|
help=_('Parameter values from file used to create the stack. '
|
||||||
'This can be specified multiple times. Parameter value '
|
'This can be specified multiple times. Parameter value '
|
||||||
'would be the content of the file'),
|
'would be the content of the file'),
|
||||||
action='append')
|
action='append')
|
||||||
@utils.arg('-x', '--existing', default=False, action="store_true",
|
@utils.arg('-x', '--existing', default=False, action="store_true",
|
||||||
help=_('Re-use the template, parameters and environment of the '
|
help=_('Re-use the template, parameters and environment of the '
|
||||||
'current stack. If the template argument is omitted then the '
|
'current stack. If the template argument is omitted then '
|
||||||
'existing template is used. If no %(env_arg)s is specified then '
|
'the existing template is used. If no %(env_arg)s is '
|
||||||
'the existing environment is used. '
|
'specified then the existing environment is used. '
|
||||||
'Parameters specified in %(arg)s will patch over the existing '
|
'Parameters specified in %(arg)s will patch over the '
|
||||||
'values in the current stack. Parameters omitted will keep '
|
'existing values in the current stack. Parameters omitted '
|
||||||
'the existing values.')
|
'will keep the existing values.')
|
||||||
% {'arg': '--parameters', 'env_arg': '--environment-file'})
|
% {'arg': '--parameters', 'env_arg': '--environment-file'})
|
||||||
@utils.arg('-c', '--clear-parameter', metavar='<PARAMETER>',
|
@utils.arg('-c', '--clear-parameter', metavar='<PARAMETER>',
|
||||||
help=_('Remove the parameters from the set of parameters of '
|
help=_('Remove the parameters from the set of parameters of '
|
||||||
'current stack for the %(cmd)s. The default value in the '
|
'current stack for the %(cmd)s. The default value in the '
|
||||||
'template will be used. This can be specified multiple times.')
|
'template will be used. This can be specified multiple '
|
||||||
|
'times.')
|
||||||
% {'cmd': 'stack-update'},
|
% {'cmd': 'stack-update'},
|
||||||
action='append')
|
action='append')
|
||||||
@utils.arg('id', metavar='<NAME or ID>',
|
@utils.arg('id', metavar='<NAME or ID>',
|
||||||
@ -554,8 +556,8 @@ def do_stack_cancel_update(hc, args):
|
|||||||
help=_('Include hidden stacks in the stack listing.'))
|
help=_('Include hidden stacks in the stack listing.'))
|
||||||
@utils.arg('-f', '--filters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
@utils.arg('-f', '--filters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||||
help=_('Filter parameters to apply on returned stacks. '
|
help=_('Filter parameters to apply on returned stacks. '
|
||||||
'This can be specified multiple times, or once with parameters '
|
'This can be specified multiple times, or once with '
|
||||||
'separated by a semicolon.'),
|
'parameters separated by a semicolon.'),
|
||||||
action='append')
|
action='append')
|
||||||
@utils.arg('-t', '--tags', metavar='<TAG1,TAG2...>',
|
@utils.arg('-t', '--tags', metavar='<TAG1,TAG2...>',
|
||||||
help=_('Show stacks containing these tags, combine multiple tags '
|
help=_('Show stacks containing these tags, combine multiple tags '
|
||||||
@ -716,9 +718,9 @@ def do_output_show(hc, args):
|
|||||||
|
|
||||||
@utils.arg('-f', '--filters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
@utils.arg('-f', '--filters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||||
help=_('Filter parameters to apply on returned resource types. '
|
help=_('Filter parameters to apply on returned resource types. '
|
||||||
'This can be specified multiple times, or once with parameters '
|
'This can be specified multiple times, or once with '
|
||||||
'separated by a semicolon. It can be any of name, version and '
|
'parameters separated by a semicolon. It can be any of '
|
||||||
'support_status'),
|
'name, version and support_status'),
|
||||||
action='append')
|
action='append')
|
||||||
def do_resource_type_list(hc, args):
|
def do_resource_type_list(hc, args):
|
||||||
'''List the available resource types.'''
|
'''List the available resource types.'''
|
||||||
@ -1010,8 +1012,8 @@ def do_hook_clear(hc, args):
|
|||||||
help=_('Name of the resource to filter events by.'))
|
help=_('Name of the resource to filter events by.'))
|
||||||
@utils.arg('-f', '--filters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
@utils.arg('-f', '--filters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||||
help=_('Filter parameters to apply on returned events. '
|
help=_('Filter parameters to apply on returned events. '
|
||||||
'This can be specified multiple times, or once with parameters '
|
'This can be specified multiple times, or once with '
|
||||||
'separated by a semicolon.'),
|
'parameters separated by a semicolon.'),
|
||||||
action='append')
|
action='append')
|
||||||
@utils.arg('-l', '--limit', metavar='<LIMIT>',
|
@utils.arg('-l', '--limit', metavar='<LIMIT>',
|
||||||
help=_('Limit the number of events returned.'))
|
help=_('Limit the number of events returned.'))
|
||||||
@ -1176,7 +1178,7 @@ def do_event_show(hc, args):
|
|||||||
|
|
||||||
@utils.arg('-f', '--definition-file', metavar='<FILE or URL>',
|
@utils.arg('-f', '--definition-file', metavar='<FILE or URL>',
|
||||||
help=_('Path to JSON/YAML containing map defining '
|
help=_('Path to JSON/YAML containing map defining '
|
||||||
'<inputs>, <outputs>, and <options>.'))
|
'<inputs>, <outputs>, and <options>.'))
|
||||||
@utils.arg('-c', '--config-file', metavar='<FILE or URL>',
|
@utils.arg('-c', '--config-file', metavar='<FILE or URL>',
|
||||||
help=_('Path to configuration script/data.'))
|
help=_('Path to configuration script/data.'))
|
||||||
@utils.arg('-g', '--group', metavar='<GROUP_NAME>', default='Heat::Ungrouped',
|
@utils.arg('-g', '--group', metavar='<GROUP_NAME>', default='Heat::Ungrouped',
|
||||||
@ -1389,8 +1391,8 @@ def do_deployment_delete(hc, args):
|
|||||||
config_id = getattr(sd, 'config_id')
|
config_id = getattr(sd, 'config_id')
|
||||||
hc.software_configs.delete(config_id=config_id)
|
hc.software_configs.delete(config_id=config_id)
|
||||||
except Exception:
|
except Exception:
|
||||||
print(_('Failed to delete the correlative config'
|
print(_('Failed to delete the correlative config '
|
||||||
' %(config_id)s of deployment %(deploy_id)s') %
|
'%(config_id)s of deployment %(deploy_id)s') %
|
||||||
{'config_id': config_id, 'deploy_id': deploy_id})
|
{'config_id': config_id, 'deploy_id': deploy_id})
|
||||||
|
|
||||||
if failure_count == len(args.id):
|
if failure_count == len(args.id):
|
||||||
|
2
tox.ini
2
tox.ini
@ -42,7 +42,7 @@ commands=
|
|||||||
downloadcache = ~/cache/pip
|
downloadcache = ~/cache/pip
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
ignore = E123,E126,E128
|
ignore = E123,E126
|
||||||
show-source = True
|
show-source = True
|
||||||
exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build
|
exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build
|
||||||
max-complexity=20
|
max-complexity=20
|
||||||
|
Loading…
Reference in New Issue
Block a user