This is an automated email from the ASF dual-hosted git repository. lfrolov pushed a commit to branch DATALAB-2951 in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
commit 9378e254e1289bf91a15a5811df42cb1f2b90c26 Author: leonidfrolov <[email protected]> AuthorDate: Tue Aug 2 14:30:43 2022 +0300 [DATALAB-2951]: fixed status check for terminated instances on aws --- 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..6b6c5cb7a 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'] = err data.append(host) return data --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
