Spaces:
Runtime error
Runtime error
elfsong
commited on
Commit
•
e8c4b5e
1
Parent(s):
b5c6cc2
Update
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def get_status(credentials, instance_name):
|
|
24 |
|
25 |
def activate_server(credentials, instance_name):
|
26 |
service = googleapiclient.discovery.build('compute', 'v1', credentials=credentials)
|
27 |
-
request = service.instances().
|
28 |
response = request.execute()
|
29 |
return response
|
30 |
|
|
|
24 |
|
25 |
def activate_server(credentials, instance_name):
|
26 |
service = googleapiclient.discovery.build('compute', 'v1', credentials=credentials)
|
27 |
+
request = service.instances().start(project='nus-cisco-corp-lab-wp1', zone='asia-southeast1-c', instance=instance_name)
|
28 |
response = request.execute()
|
29 |
return response
|
30 |
|