cli: add missing controller arg to playbook metrics

This provides the ability to get playbook metrics for a specific
controller.

Change-Id: I57abfc1bf6ef5e0ceb420da4f9a28094269a78ab
This commit is contained in:
David Moreau Simard 2021-01-14 13:29:31 -05:00
parent 5171bf9e97
commit 294d90fe8d
No known key found for this signature in database
GPG Key ID: 7D4729EC4E64E8B7
1 changed files with 9 additions and 0 deletions

View File

@ -429,6 +429,12 @@ class PlaybookMetrics(Lister):
default=None,
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(
"--path",
metavar="<path>",
@ -486,6 +492,9 @@ class PlaybookMetrics(Lister):
if args.name is not None:
query["name"] = args.name
if args.controller is not None:
query["controller"] = args.controller
if args.path is not None:
query["path"] = args.path