]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: Fix balancer print
authorDavid Zafman <dzafman@redhat.com>
Wed, 20 Nov 2019 22:08:24 +0000 (14:08 -0800)
committerDavid Zafman <dzafman@redhat.com>
Thu, 28 Nov 2019 00:29:29 +0000 (16:29 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
qa/standalone/mgr/balancer.sh
src/pybind/mgr/balancer/module.py

index 979d70e3c2c3e561e31622ffca3f883a230b4a53..425d4de2d6da8cf659ef46c74c44a77405af0d0c 100755 (executable)
@@ -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')
index 2f0e34fe2866639f8bb619fab9254e999c2709ff..2c92180dbcb68cc5ae4c26114e3f797b2b3ee6ba 100644 (file)
@@ -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, ''