Merge "cli: add missing controller arg to playbook metrics"

This commit is contained in:
Zuul 2021-01-22 21:38:37 +00:00 committed by Gerrit Code Review
commit 9144020d7d
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