From 596af283f3851c66291e18eff14c4439b96888d6 Mon Sep 17 00:00:00 2001 From: gursewak1997 Date: Fri, 12 Apr 2024 10:26:05 -0700 Subject: [PATCH] Drop nargs for append action Drop the nargs usage and replace it with 'action=append' in order to pass multple flags for grant-user and grant-user-snapshot arguments --- src/cosalib/aws.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cosalib/aws.py b/src/cosalib/aws.py index d1a886e420..83fdde1dc5 100644 --- a/src/cosalib/aws.py +++ b/src/cosalib/aws.py @@ -189,9 +189,9 @@ def aws_cli(parser): default=os.environ.get("AWS_CONFIG_FILE")) parser.add_argument("--name-suffix", help="Suffix for name") parser.add_argument("--grant-user", help="Grant user launch permission", - nargs="*", default=[]) + action='append', default=[]) parser.add_argument("--grant-user-snapshot", help="Grant user snapshot volume permission", - nargs="*", default=[]) + action='append', default=[]) parser.add_argument("--public", action="store_true", help="Mark images as publicly available") parser.add_argument("--tags", help="list of key=value tags to attach to the AMI", action='append', default=[])