Skip to content

Commit

Permalink
Drop nargs for append action
Browse files Browse the repository at this point in the history
Drop the nargs usage and replace it with 'action=append'
in order to pass multple flags for grant-user and
grant-user-snapshot arguments
  • Loading branch information
gursewak1997 committed Apr 12, 2024
1 parent a405195 commit 596af28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cosalib/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[])
Expand Down

0 comments on commit 596af28

Please sign in to comment.