Skip to content

Commit

Permalink
don't alpha everything
Browse files Browse the repository at this point in the history
  • Loading branch information
kipply committed May 19, 2020
1 parent de7f7cb commit 7a4b02a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cloud/envs/gcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ def usable(self):
return is_running and is_healthy

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

utils.try_call(cmd)

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

Expand All @@ -127,7 +127,7 @@ def delete(self, background=True):
if not self.still_exists:
return

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

0 comments on commit 7a4b02a

Please sign in to comment.