From 2fdbf644d0c3daf67d2bc21598df289f3e901374 Mon Sep 17 00:00:00 2001 From: Johannes Ebke Date: Fri, 11 Nov 2022 00:03:34 +0100 Subject: [PATCH] Revert ill-conceived "Allow comma-separated services for convenience" This reverts commit 30ce6db6db3fc96c0ca21a1145ed67266566d12e. --- aws_list_all/__main__.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/aws_list_all/__main__.py b/aws_list_all/__main__.py index 322c8f3..15a87c9 100755 --- a/aws_list_all/__main__.py +++ b/aws_list_all/__main__.py @@ -140,10 +140,6 @@ def main(): ) args = parser.parse_args() - services = [] - if args.service: - for service in args.service: - services.extend(service.split(",")) if args.command == 'query': if args.directory: @@ -153,8 +149,9 @@ def main(): pass os.chdir(args.directory) increase_limit_nofiles() + services = args.service or get_services() do_query( - services or get_services(), + services, args.region, args.operation, verbose=args.verbose or 0,