|
1 | | -from os import chmod |
2 | | - |
3 | 1 | import boto3 |
4 | | -from botocore.exceptions import ClientError |
5 | | - |
6 | | -from osbot_utils.type_safe.Type_Safe import Type_Safe |
7 | | -from osbot_utils.utils.Dev import pprint |
8 | | -from osbot_utils.utils.Lists import list_index_by, list_get |
9 | | - |
10 | | -from osbot_aws.AWS_Config import set_aws_region, AWS_Config |
11 | | -from osbot_utils.decorators.methods.cache_on_self import cache_on_self |
12 | | -from osbot_utils.utils.Files import file_name, temp_folder, path_combine, file_create |
13 | | - |
| 2 | +from os import chmod |
| 3 | +from botocore.exceptions import ClientError |
| 4 | +from osbot_utils.type_safe.Type_Safe import Type_Safe |
| 5 | +from osbot_utils.utils.Lists import list_index_by, list_get |
| 6 | +from osbot_aws.AWS_Config import set_aws_region, AWS_Config |
| 7 | +from osbot_utils.decorators.methods.cache_on_self import cache_on_self |
| 8 | +from osbot_utils.utils.Files import temp_folder, path_combine, file_create |
14 | 9 | from osbot_utils.decorators.methods.remove_return_value import remove_return_value |
15 | | - |
16 | | -from osbot_utils.decorators.lists.group_by import group_by |
17 | | -from osbot_utils.decorators.lists.index_by import index_by |
18 | | -from osbot_utils.decorators.methods.cache import cache |
19 | | -from osbot_aws.apis.Session import Session |
20 | | -from osbot_utils.utils.Misc import list_set |
21 | | -from osbot_utils.utils.Status import status_warning, status_ok |
| 10 | +from osbot_utils.decorators.lists.group_by import group_by |
| 11 | +from osbot_utils.decorators.lists.index_by import index_by |
| 12 | +from osbot_aws.apis.Session import Session |
| 13 | +from osbot_utils.utils.Misc import list_set |
| 14 | +from osbot_utils.utils.Status import status_warning, status_ok |
22 | 15 |
|
23 | 16 | # todo: find good solution to capture/manage these config values |
24 | 17 | EC2_WAITER_DELAY = 1 # default was 15 seconds |
@@ -54,7 +47,6 @@ def amis(self, owner='self', architecture=None, state='available', name=None, de |
54 | 47 | filters.append({'Name': key, 'Values': [value]}) |
55 | 48 | describe_kwargs = {'Owners': [owner], |
56 | 49 | 'Filters':filters } |
57 | | - pprint(describe_kwargs) |
58 | 50 | return self.client().describe_images(**describe_kwargs).get('Images') |
59 | 51 |
|
60 | 52 | def image(self, image_id): |
|
0 commit comments