This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch epm-v2.5.2-tpcp
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to refs/heads/epm-v2.5.2-tpcp by this push:
new 304c4093a fixed status checker failure when one of instances is in
terminated state
new 46cec6f77 Merge branch 'epm-v2.5.2-tpcp' of
https://github.com/apache/incubator-dlab into epm-v2.5.2-tpcp
304c4093a is described below
commit 304c4093a1363d1884a3330185d2a5fdbb6df37f
Author: leonidfrolov <[email protected]>
AuthorDate: Tue May 10 14:00:03 2022 +0300
fixed status checker failure when one of instances is in terminated state
---
infrastructure-provisioning/src/general/lib/aws/meta_lib.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/infrastructure-provisioning/src/general/lib/aws/meta_lib.py
b/infrastructure-provisioning/src/general/lib/aws/meta_lib.py
index 063b21588..dc92832eb 100644
--- a/infrastructure-provisioning/src/general/lib/aws/meta_lib.py
+++ b/infrastructure-provisioning/src/general/lib/aws/meta_lib.py
@@ -747,9 +747,9 @@ def get_list_instance_statuses(instance_ids):
host['status'] = j.get('State').get('Name')
data.append(host)
except Exception as err:
- host['id'] = i.get('id')
+ host['id'] = h.get('id')
host['status'] = 'terminated'
- host['error_response'] = err
+ host['error_response'] = str(err).replace("'", "")
data.append(host)
return data
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]