Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
fix(release): call proper RC scale instead of a missing (old) method (#…
Browse files Browse the repository at this point in the history
…1055)

only happens when cleaning up RCs

Fixes #1054
  • Loading branch information
helgi committed Sep 12, 2016
1 parent 640d220 commit 3d3676b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/api/models/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def _delete_release_in_scheduler(self, namespace, version):
for controller in controllers['items']:
# Deployment takes care of this in the API, RC does not
# Have the RC scale down pods and delete itself
self._scheduler._scale_rc(namespace, controller['metadata']['name'], 0, timeout)
self._scheduler.rc.scale(namespace, controller['metadata']['name'], 0, timeout)
self._scheduler.rc.delete(namespace, controller['metadata']['name'])

def save(self, *args, **kwargs): # noqa
Expand Down

0 comments on commit 3d3676b

Please sign in to comment.