after of this commit remember do a git reset hard

This commit is contained in:
2023-03-28 19:37:56 +03:00
parent a96829bd80
commit 715f286aaa

View File

@@ -1500,21 +1500,21 @@ if args.listimages or args.listsizes or args.listlocations:
if args.listimages and args.provider: if args.listimages and args.provider:
# If -I or --listimages is passed, call the list_provider_images function # If -I or --listimages is passed, call the list_provider_images function
if args.print: if args.print:
print(get_provider_image(args.provider)) console.print(get_provider_image(args.provider))
else: else:
list_provider_images(args.provider) list_provider_images(args.provider)
exit(0) exit(0)
if args.listsizes and args.provider: if args.listsizes and args.provider:
# If -S or --listsizes is passed, call the list_provider_sizes function # If -S or --listsizes is passed, call the list_provider_sizes function
if args.print: if args.print:
print(get_provider_size(args.provider)) console.print(get_provider_size(args.provider))
else: else:
list_provider_sizes(args.provider) list_provider_sizes(args.provider)
exit(0) exit(0)
if args.listlocations and args.provider: if args.listlocations and args.provider:
# If -G or --listlocations is passed, call the list_provider_locations function # If -G or --listlocations is passed, call the list_provider_locations function
if args.print: if args.print:
print(get_provider_location(args.provider)) console.print(get_provider_location(args.provider))
else: else:
list_provider_locations(args.provider) list_provider_locations(args.provider)
exit(0) exit(0)
@@ -1525,7 +1525,7 @@ if args.create:
exit(0) exit(0)
if args.list: if args.list:
if args.print: if args.print:
print(get_node(args.provider, args.awsregion)) console.print(get_node(args.provider, args.awsregion))
else: else:
list_all_nodes(args.provider, None, args.awsregion) list_all_nodes(args.provider, None, args.awsregion)
exit(0) exit(0)