From: Sage Weil Date: Wed, 8 Aug 2018 01:43:49 +0000 (-0500) Subject: mgr/localpool: pg_num is an int arg to 'osd pool create' X-Git-Tag: v12.2.13~58^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=edf5da1a770dcede0228c249c6311fe2ea2bbb44;p=ceph.git mgr/localpool: pg_num is an int arg to 'osd pool create' 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 (cherry picked from commit e02a5d55472bdd8473604730f969fad2dc5eafac) --- diff --git a/src/pybind/mgr/localpool/module.py b/src/pybind/mgr/localpool/module.py index fac3d1c7f6c..1fecdc3bea9 100644 --- a/src/pybind/mgr/localpool/module.py +++ b/src/pybind/mgr/localpool/module.py @@ -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()