Removed useless '--name' in audit-template-list
This bug outlined that a --name option of the audit-template-list subcommand was not working properly. But the goal of this command would have been equivalent to using 'audit-template-show'. That's why I simply removed it from our client. Change-Id: I57bb0c88bcf373304e59109cd7557052ef7a980b Closes-Bug: #1510190
This commit is contained in:
@@ -45,10 +45,6 @@ def do_audit_template_show(cc, args):
|
|||||||
action='store_true',
|
action='store_true',
|
||||||
default=False,
|
default=False,
|
||||||
help="Show detailed information about audit templates.")
|
help="Show detailed information about audit templates.")
|
||||||
@cliutils.arg(
|
|
||||||
'--name',
|
|
||||||
metavar='<name>',
|
|
||||||
help='Only show information for the audit template with this name.')
|
|
||||||
@cliutils.arg(
|
@cliutils.arg(
|
||||||
'--goal',
|
'--goal',
|
||||||
metavar='<goal>',
|
metavar='<goal>',
|
||||||
@@ -73,8 +69,6 @@ def do_audit_template_list(cc, args):
|
|||||||
"""List the audit templates."""
|
"""List the audit templates."""
|
||||||
params = {}
|
params = {}
|
||||||
|
|
||||||
if args.name is not None:
|
|
||||||
params['name'] = args.name
|
|
||||||
if args.goal is not None:
|
if args.goal is not None:
|
||||||
params['goal'] = args.goal
|
params['goal'] = args.goal
|
||||||
if args.detail:
|
if args.detail:
|
||||||
|
Reference in New Issue
Block a user