diff options
author | Mike Crute <mike@crute.us> | 2020-05-30 14:30:32 -0700 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2020-05-30 15:07:45 -0700 |
commit | 90f7408fc781bd233c0075a0a4dd555022b58636 (patch) | |
tree | 8a264039bfff279b6a31af0db90df98100e6d309 | |
parent | b804661ffd8fc6bd30204100606e4150bbd79bf9 (diff) | |
download | alpine-ec2-ami-90f7408fc781bd233c0075a0a4dd555022b58636.tar.bz2 alpine-ec2-ami-90f7408fc781bd233c0075a0a4dd555022b58636.tar.xz alpine-ec2-ami-90f7408fc781bd233c0075a0a4dd555022b58636.zip |
Flip broker usage flag
-rwxr-xr-x | scripts/builder.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/builder.py b/scripts/builder.py index 1bc4642..6ab9ed7 100755 --- a/scripts/builder.py +++ b/scripts/builder.py | |||
@@ -248,8 +248,8 @@ class MakeAMIs: | |||
248 | def add_args(parser): | 248 | def add_args(parser): |
249 | parser.add_argument("--region", "-r", default="us-west-2", | 249 | parser.add_argument("--region", "-r", default="us-west-2", |
250 | help="region to use for build") | 250 | help="region to use for build") |
251 | parser.add_argument("--no-broker", action="store_true", | 251 | parser.add_argument("--use-broker", action="store_true", |
252 | help="disable use of identity broker") | 252 | help="use identity broker to obtain per-region credentials") |
253 | parser.add_argument("profile", help="name of profile to build") | 253 | parser.add_argument("profile", help="name of profile to build") |
254 | parser.add_argument("builds", nargs="*", | 254 | parser.add_argument("builds", nargs="*", |
255 | help="name of builds within a profile to build") | 255 | help="name of builds within a profile to build") |
@@ -269,7 +269,7 @@ class MakeAMIs: | |||
269 | break | 269 | break |
270 | 270 | ||
271 | env = None | 271 | env = None |
272 | if not args.no_broker: | 272 | if args.use_broker: |
273 | creds = IdentityBrokerClient().get_credentials(args.region) | 273 | creds = IdentityBrokerClient().get_credentials(args.region) |
274 | env = { | 274 | env = { |
275 | "PATH": os.environ.get("PATH"), | 275 | "PATH": os.environ.get("PATH"), |
@@ -651,8 +651,8 @@ class FullBuild: | |||
651 | def add_args(parser): | 651 | def add_args(parser): |
652 | parser.add_argument("--region", "-r", default="us-west-2", | 652 | parser.add_argument("--region", "-r", default="us-west-2", |
653 | help="region to use for build") | 653 | help="region to use for build") |
654 | parser.add_argument("--no-broker", action="store_true", | 654 | parser.add_argument("--use-broker", action="store_true", |
655 | help="disable use of identity broker") | 655 | help="use identity broker to obtain per-region credentials") |
656 | parser.add_argument("profile", help="name of profile to build") | 656 | parser.add_argument("profile", help="name of profile to build") |
657 | parser.add_argument("builds", nargs="*", | 657 | parser.add_argument("builds", nargs="*", |
658 | help="name of builds within a profile to build") | 658 | help="name of builds within a profile to build") |