[DLAB-1624]: fixed bug
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 @@
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 @@
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)