Add user flag to cli app to filter executions by user
@@ -1085,6 +1085,8 @@ class ActionExecutionListCommand(ResourceViewCommand):
status. Possible values are \'%s\', \'%s\', \
\'%s\', \'%s\', \'%s\', \'%s\' or \'%s\''
'.' % POSSIBLE_ACTION_STATUS_VALUES))
+ self.group.add_argument('--user',
+ help='Only return executions created by provided the user.')
self.group.add_argument('--trigger_instance',
help='Trigger instance id to filter the list.')
self.parser.add_argument('-tg', '--timestamp-gt', type=str, dest='timestamp_gt',
@@ -1117,6 +1119,8 @@ class ActionExecutionListCommand(ResourceViewCommand):
kwargs['action'] = args.action
if args.status:
kwargs['status'] = args.status
+ if args.user:
+ kwargs['user'] = args.user
if args.trigger_instance:
kwargs['trigger_instance'] = args.trigger_instance
if not args.showall:
