From: Kefu Chai Date: Fri, 1 Nov 2019 09:22:25 +0000 (+0800) Subject: mgr/orchestrator_cli: pass default value to "req=False" params X-Git-Tag: v15.1.0~1088^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=15a3eeb4e52f72f3f7c43ac206572cc57553360c;p=ceph.git mgr/orchestrator_cli: pass default value to "req=False" params in mds_add() command, both "num" and "hosts" are optional, so they should have default values of "None". this change was introduced in c35db383. Signed-off-by: Kefu Chai --- diff --git a/src/pybind/mgr/orchestrator_cli/module.py b/src/pybind/mgr/orchestrator_cli/module.py index b051d2f1490b..2c30e83f24e4 100644 --- a/src/pybind/mgr/orchestrator_cli/module.py +++ b/src/pybind/mgr/orchestrator_cli/module.py @@ -241,7 +241,7 @@ Usage: "name=num,type=CephInt,req=false " "name=hosts,type=CephString,n=N,req=false", 'Create an MDS service') - def _mds_add(self, fs_name, num, hosts): + def _mds_add(self, fs_name, num=None, hosts=None): spec = orchestrator.StatelessServiceSpec( fs_name, placement=orchestrator.PlacementSpec(nodes=hosts),