Skip to content

Commit 3d3676b

Browse files
authored
fix(release): call proper RC scale instead of a missing (old) method (#1055)
only happens when cleaning up RCs Fixes #1054
1 parent 640d220 commit 3d3676b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rootfs/api/models/release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def _delete_release_in_scheduler(self, namespace, version):
350350
for controller in controllers['items']:
351351
# Deployment takes care of this in the API, RC does not
352352
# Have the RC scale down pods and delete itself
353-
self._scheduler._scale_rc(namespace, controller['metadata']['name'], 0, timeout)
353+
self._scheduler.rc.scale(namespace, controller['metadata']['name'], 0, timeout)
354354
self._scheduler.rc.delete(namespace, controller['metadata']['name'])
355355

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

0 commit comments

Comments
 (0)