Skip to content

Commit 1a00e00

Browse files
authored
Merge pull request #36 from kipply/master
2 parents 01641fe + 7a4b02a commit 1a00e00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cloud/envs/gcp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,14 @@ def usable(self):
118118
return is_running and is_healthy
119119

120120
def up(self, background=False):
121-
cmd = ["gcloud", "alpha", "compute", "tpus", "start", "--zone={}".format(self.manager.zone), self.name]
121+
cmd = ["gcloud", "compute", "tpus", "start", "--zone={}".format(self.manager.zone), self.name]
122122
if background:
123123
cmd += ["--async"]
124124

125125
utils.try_call(cmd)
126126

127127
def down(self, background=True):
128-
cmd = ["gcloud", "alpha", "compute", "tpus", "stop", "--zone={}".format(self.manager.zone), self.name]
128+
cmd = ["gcloud", "compute", "tpus", "stop", "--zone={}".format(self.manager.zone), self.name]
129129
if background:
130130
cmd += ["--async"]
131131

@@ -137,7 +137,7 @@ def delete(self, background=True):
137137
if not self.still_exists:
138138
return
139139

140-
cmd = ["gcloud", "alpha", "compute", "tpus", "delete", "--zone={}".format(self.manager.zone), self.name]
140+
cmd = ["gcloud", "compute", "tpus", "delete", "--zone={}".format(self.manager.zone), self.name]
141141
if background:
142142
cmd += ["--async"]
143143
cmd += ["--quiet"] # suppress user confirmation

0 commit comments

Comments
 (0)