]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/localpool: pg_num is an int arg to 'osd pool create' 23478/head
authorSage Weil <sage@redhat.com>
Wed, 8 Aug 2018 01:43:49 +0000 (20:43 -0500)
committerSage Weil <sage@redhat.com>
Wed, 8 Aug 2018 01:43:49 +0000 (20:43 -0500)
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>
src/pybind/mgr/localpool/module.py

index 794c1dba39617de04c30fa186f5b59c3c0ac112b..dd37e0adadb16ba5559348085373aece5de96570 100644 (file)
@@ -65,7 +65,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()