Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Mar 30, 2017
1 parent c08b578 commit 32cc474
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -39,7 +39,7 @@

setuptools.setup(
name = "rancher_api",
version = "0.1.8",
version = "0.1.9",
author = "Hive Solutions Lda.",
author_email = "development@hive.pt",
description = "Rancher API Client",
Expand Down
4 changes: 2 additions & 2 deletions src/rancher/service.py
Expand Up @@ -85,7 +85,7 @@ def upgrade_service(
url = self.base_url + "services/%s?action=upgrade" % id
if try_finish: self._service_try_finish(id)
if launch_config == None: launch_config = self._service_launch_config(id)
if safe and not self._serivce_active(id): return
if safe and not self._service_active(id): return
contents = self.post(
url,
data_j = dict(
Expand Down Expand Up @@ -127,7 +127,7 @@ def restart_service(self, id, batch_size = 1, interval = 2000):
data = contents["data"]
return data

def _serivce_active(self):
def _service_active(self, id):
service = self.get_service(id)
return service["state"] == "active"

Expand Down

0 comments on commit 32cc474

Please sign in to comment.