]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/orchestrator_cli: pass default value to "req=False" params 31314/head
authorKefu Chai <kchai@redhat.com>
Fri, 1 Nov 2019 09:22:25 +0000 (17:22 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 1 Nov 2019 09:23:58 +0000 (17:23 +0800)
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 <kchai@redhat.com>
src/pybind/mgr/orchestrator_cli/module.py

index b051d2f1490b98455066a7eeddf8c2069c3feb6e..2c30e83f24e45ed68b083a6ec5420fe3fff07193 100644 (file)
@@ -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),