This is an automated email from the ASF dual-hosted git repository.
omartushevskyi pushed a commit to branch DLAB-1546
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/DLAB-1546 by this push:
new 93d85d0 [DLAB-1546]: added name convention changes
93d85d0 is described below
commit 93d85d0f8cefde8b6ca5a84104b0d6e24248a462
Author: Oleh Martushevskyi <[email protected]>
AuthorDate: Tue Mar 3 17:51:17 2020 +0200
[DLAB-1546]: added name convention changes
---
infrastructure-provisioning/src/general/lib/gcp/meta_lib.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/infrastructure-provisioning/src/general/lib/gcp/meta_lib.py
b/infrastructure-provisioning/src/general/lib/gcp/meta_lib.py
index fc0ee79..cc16028 100644
--- a/infrastructure-provisioning/src/general/lib/gcp/meta_lib.py
+++ b/infrastructure-provisioning/src/general/lib/gcp/meta_lib.py
@@ -172,7 +172,8 @@ class GCPMeta:
traceback.print_exc(file=sys.stdout)
def get_instance(self, instance_name):
- request = self.service.instances().get(project=self.project,
zone=os.environ['gcp_zone'],
+ meta = GCPMeta()
+ request = meta.service.instances().get(project=self.project,
zone=os.environ['gcp_zone'],
instance=instance_name)
try:
return request.execute()
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]