From 15a3eeb4e52f72f3f7c43ac206572cc57553360c Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 1 Nov 2019 17:22:25 +0800 Subject: [PATCH] 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 --- src/pybind/mgr/orchestrator_cli/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/orchestrator_cli/module.py b/src/pybind/mgr/orchestrator_cli/module.py index b051d2f1490..2c30e83f24e 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), -- 2.47.3