From 0af7e25620ae823d46eb842992570ddc1607cc4f Mon Sep 17 00:00:00 2001 From: David Zafman Date: Wed, 20 Nov 2019 14:08:24 -0800 Subject: [PATCH] mgr: Fix balancer print Signed-off-by: David Zafman --- qa/standalone/mgr/balancer.sh | 2 +- src/pybind/mgr/balancer/module.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/standalone/mgr/balancer.sh b/qa/standalone/mgr/balancer.sh index 979d70e3c2c3e..425d4de2d6da8 100755 --- a/qa/standalone/mgr/balancer.sh +++ b/qa/standalone/mgr/balancer.sh @@ -104,7 +104,7 @@ function TEST_balancer() { ! ceph balancer optimize plan_upmap $TEST_POOL || return 1 ceph balancer status || return 1 eval RESULT=$(ceph balancer status | jq '.optimize_result') - test "$RESULT" = "Unable to find further optimization, or pool(s)' pg_num is decreasing, or distribution is already perfect" || return 1 + test "$RESULT" = "Unable to find further optimization, or pool(s) pg_num is decreasing, or distribution is already perfect" || return 1 ceph balancer on || return 1 ACTIVE=$(ceph balancer status | jq '.active') diff --git a/src/pybind/mgr/balancer/module.py b/src/pybind/mgr/balancer/module.py index 2f0e34fe28666..2c92180dbcb68 100644 --- a/src/pybind/mgr/balancer/module.py +++ b/src/pybind/mgr/balancer/module.py @@ -1000,7 +1000,7 @@ class Module(MgrModule): self.log.info('prepared %d changes in total' % total_did) if total_did == 0: return -errno.EALREADY, 'Unable to find further optimization, ' \ - 'or pool(s)\' pg_num is decreasing, ' \ + 'or pool(s) pg_num is decreasing, ' \ 'or distribution is already perfect' return 0, '' -- 2.39.5