Skip to content

Commit 596af28

Browse files
committed
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
1 parent a405195 commit 596af28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cosalib/aws.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ def aws_cli(parser):
189189
default=os.environ.get("AWS_CONFIG_FILE"))
190190
parser.add_argument("--name-suffix", help="Suffix for name")
191191
parser.add_argument("--grant-user", help="Grant user launch permission",
192-
nargs="*", default=[])
192+
action='append', default=[])
193193
parser.add_argument("--grant-user-snapshot", help="Grant user snapshot volume permission",
194-
nargs="*", default=[])
194+
action='append', default=[])
195195
parser.add_argument("--public", action="store_true", help="Mark images as publicly available")
196196
parser.add_argument("--tags", help="list of key=value tags to attach to the AMI",
197197
action='append', default=[])

0 commit comments

Comments
 (0)