Skip to content

Commit

Permalink
Merge pull request #36 from kipply/master
Browse files Browse the repository at this point in the history
  • Loading branch information
1vn authored May 19, 2020
2 parents 01641fe + 7a4b02a commit 1a00e00
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 @@ -118,14 +118,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 @@ -137,7 +137,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 1a00e00

Please sign in to comment.