This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DLAB-1665
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/DLAB-1665 by this push:
new c1a1c1a [DLAB-1665]: changed removal of project specific images
during project termination on azure
c1a1c1a is described below
commit c1a1c1a780516b91c39dc4a2420d73f3490b3174
Author: leonidfrolov <[email protected]>
AuthorDate: Fri Mar 27 20:06:34 2020 +0200
[DLAB-1665]: changed removal of project specific images during project
termination on azure
---
.../src/general/scripts/azure/project_terminate.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/infrastructure-provisioning/src/general/scripts/azure/project_terminate.py
b/infrastructure-provisioning/src/general/scripts/azure/project_terminate.py
index 68fd89c..765959f 100644
--- a/infrastructure-provisioning/src/general/scripts/azure/project_terminate.py
+++ b/infrastructure-provisioning/src/general/scripts/azure/project_terminate.py
@@ -115,7 +115,8 @@ def terminate_edge_node(resource_group_name,
service_base_name, project_tag, sub
print("Removing project specific images")
try:
for image in AzureMeta.list_images():
- if service_base_name == image.tags["SBN"] and project_tag ==
image.tags["project_tag"]:
+ if service_base_name == image.tags["SBN"] and 'project_tag' in
image.tags \
+ and project_tag == image.tags["project_tag"]:
AzureActions.remove_image(resource_group_name, image.name)
print("Image {} has been removed".format(image.name))
except Exception as err:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]