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: v14.0.1~644^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=e02a5d55472bdd8473604730f969fad2dc5eafac;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 --- diff --git a/src/pybind/mgr/localpool/module.py b/src/pybind/mgr/localpool/module.py index 794c1dba39617..dd37e0adadb16 100644 --- a/src/pybind/mgr/localpool/module.py +++ b/src/pybind/mgr/localpool/module.py @@ -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()