diff --git a/ara/cli/playbook.py b/ara/cli/playbook.py index 23535d2e..2a835e3b 100644 --- a/ara/cli/playbook.py +++ b/ara/cli/playbook.py @@ -429,6 +429,12 @@ class PlaybookMetrics(Lister): default=None, help=("List playbooks matching the provided name (full or partial)"), ) + parser.add_argument( + "--controller", + metavar="", + default=None, + help=("List playbooks that ran from the provided controller (full or partial)"), + ) parser.add_argument( "--path", metavar="", @@ -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