Merge "cli: add missing controller arg to playbook metrics"
This commit is contained in:
commit
9144020d7d
|
@ -429,6 +429,12 @@ class PlaybookMetrics(Lister):
|
||||||
default=None,
|
default=None,
|
||||||
help=("List playbooks matching the provided name (full or partial)"),
|
help=("List playbooks matching the provided name (full or partial)"),
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--controller",
|
||||||
|
metavar="<controller>",
|
||||||
|
default=None,
|
||||||
|
help=("List playbooks that ran from the provided controller (full or partial)"),
|
||||||
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--path",
|
"--path",
|
||||||
metavar="<path>",
|
metavar="<path>",
|
||||||
|
@ -486,6 +492,9 @@ class PlaybookMetrics(Lister):
|
||||||
if args.name is not None:
|
if args.name is not None:
|
||||||
query["name"] = args.name
|
query["name"] = args.name
|
||||||
|
|
||||||
|
if args.controller is not None:
|
||||||
|
query["controller"] = args.controller
|
||||||
|
|
||||||
if args.path is not None:
|
if args.path is not None:
|
||||||
query["path"] = args.path
|
query["path"] = args.path
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue