Skip to content

Commit

Permalink
new rollback support
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Dec 14, 2016
1 parent 82294ca commit c70bb59
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/rancher/service.py
Expand Up @@ -94,6 +94,12 @@ def finish_upgrade_service(self, id):
data = contents["data"]
return data

def rollback_service(self, id):
url = self.base_url + "services/%s?action=rollback" % id
contents = self.post(url)
data = contents["data"]
return data

def restart_service(self, id, batch_size = 1, interval = 2000):
url = self.base_url + "services/%s?action=restart" % id
contents = self.post(
Expand Down

0 comments on commit c70bb59

Please sign in to comment.