This is an automated email from the ASF dual-hosted git repository. lfrolov pushed a commit to branch DLAB-1642 in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit 952268d15c9b28a3b7f9e4061e6473c897803f8f Author: leonidfrolov <[email protected]> AuthorDate: Thu Mar 19 15:48:04 2020 +0200 [DLAB-1642]: made some changes --- .../src/general/scripts/gcp/project_terminate.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/infrastructure-provisioning/src/general/scripts/gcp/project_terminate.py b/infrastructure-provisioning/src/general/scripts/gcp/project_terminate.py index 4fb855e..de2ff0a 100644 --- a/infrastructure-provisioning/src/general/scripts/gcp/project_terminate.py +++ b/infrastructure-provisioning/src/general/scripts/gcp/project_terminate.py @@ -89,10 +89,11 @@ def terminate_edge_node(endpoint_name, project_name, service_base_name, region, print("Removing project specific images") try: - images = GCPMeta().get_list_images(args.service_base_name) + project_image_name_beginning = '{}-{}'.format(service_base_name, project_name) + images = GCPMeta.get_list_images(project_image_name_beginning) if 'items' in images: for i in images['items']: - GCPActions().remove_image(i['name']) + GCPActions.remove_image(i['name']) except Exception as err: print('Error: {0}'.format(err)) sys.exit(1) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
