From e02a5d55472bdd8473604730f969fad2dc5eafac 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 --- 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 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() -- 2.39.5