This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch DLAB-1624
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git

commit 08b1d877462a0d8c23f2b5be02958a5967cc1459
Author: leonidfrolov <[email protected]>
AuthorDate: Mon Mar 16 11:56:49 2020 +0200

    [DLAB-1624]: fixed bug
---
 .../src/general/scripts/gcp/common_stop_notebook.py                   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/infrastructure-provisioning/src/general/scripts/gcp/common_stop_notebook.py 
b/infrastructure-provisioning/src/general/scripts/gcp/common_stop_notebook.py
index 6c042b8..bcd431b 100644
--- 
a/infrastructure-provisioning/src/general/scripts/gcp/common_stop_notebook.py
+++ 
b/infrastructure-provisioning/src/general/scripts/gcp/common_stop_notebook.py
@@ -63,7 +63,7 @@ def stop_notebook(instance_name, bucket_name, region, zone, 
ssh_user, key_path,
         if clusters_list.get('items'):
             for vm in clusters_list['items']:
                 try:
-                    GCPActions().stop_instance(vm['name'], zone)
+                    GCPActions.stop_instance(vm['name'], zone)
                     print("Instance {} has been stopped".format(vm['name']))
                 except:
                     pass
@@ -76,7 +76,7 @@ def stop_notebook(instance_name, bucket_name, region, zone, 
ssh_user, key_path,
 
     print("Stopping notebook")
     try:
-        GCPActions().stop_instance(instance_name, zone)
+        GCPActions.stop_instance(instance_name, zone)
     except Exception as err:
         dlab.fab.append_result("Failed to stop instance", str(err))
         sys.exit(1)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to