]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/localpool: pg_num is an int arg to 'osd pool create' 30446/head
authorSage Weil <sage@redhat.com>
Wed, 8 Aug 2018 01:43:49 +0000 (20:43 -0500)
committerKefu Chai <kchai@redhat.com>
Wed, 18 Sep 2019 03:31:29 +0000 (11:31 +0800)
In bd565bca3f42d7946c392b2833bb3d9982a8ac5d we start returning EINVAL if
the pg_num argument is not valid, whereas before it was silently ignored.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit e02a5d55472bdd8473604730f969fad2dc5eafac)

src/pybind/mgr/localpool/module.py

index fac3d1c7f6c71ebd6d829897df608066a1ee5cba..1fecdc3bea9499a00532d3a203afa6056185adde 100644 (file)
@@ -55,7 +55,7 @@ class Module(MgrModule):
                         "pool": pool_name,
                         'rule': pool_name,
                         "pool_type": 'replicated',
-                        'pg_num': str(pg_num),
+                        'pg_num': int(pg_num),
                     }), "")
                     r, outb, outs = result.wait()