From 8c993bd9337b3a46b4383e731ba816ee3556ef8a Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Wed, 28 Oct 2020 20:08:03 +0530 Subject: [PATCH] mgr/rook: Remove unused 'current' argument from update_func method Signed-off-by: Varsha Rao --- src/pybind/mgr/rook/rook_cluster.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/pybind/mgr/rook/rook_cluster.py b/src/pybind/mgr/rook/rook_cluster.py index 6ee1c7d6d47e2..953b707da0db5 100644 --- a/src/pybind/mgr/rook/rook_cluster.py +++ b/src/pybind/mgr/rook/rook_cluster.py @@ -389,8 +389,8 @@ class RookCluster(object): # TODO use spec.placement # TODO warn if spec.extended has entries we don't kow how # to action. - def _update_fs(current, new): - # type: (cfs.CephFilesystem, cfs.CephFilesystem) -> cfs.CephFilesystem + def _update_fs(new): + # type: (cfs.CephFilesystem) -> cfs.CephFilesystem new.spec.metadataServer.activeCount = spec.placement.count or 1 return new @@ -447,7 +447,7 @@ class RookCluster(object): ) ) - def _update_zone(current, new): + def _update_zone(new): new.spec.gateway.instances = spec.placement.count or 1 return new @@ -625,10 +625,9 @@ class RookCluster(object): raise if current_json: - current = crd.from_json(current_json) new = crd.from_json(current_json) # no deepcopy. - new = update_func(current, new) + new = update_func(new) patch = list(jsonpatch.make_patch(current_json, new.to_json())) -- 2.39.5