From edf5da1a770dcede0228c249c6311fe2ea2bbb44 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 7 Aug 2018 20:43:49 -0500 Subject: [PATCH] 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) --- src/pybind/mgr/localpool/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.47.3