You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by lf...@apache.org on 2020/03/19 14:12:06 UTC

[incubator-dlab] 02/02: [DLAB-1642]: made some changes

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 <fr...@gmail.com>
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: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org