]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/orchestrator_cli: set type for 'orchestrator' option 32189/head
authorSage Weil <sage@redhat.com>
Wed, 11 Dec 2019 18:26:10 +0000 (12:26 -0600)
committerSage Weil <sage@redhat.com>
Wed, 11 Dec 2019 18:26:10 +0000 (12:26 -0600)
If we don't specify the type, the mgr_module.py will str() the default
value, turning it into "None", breaking the self-test.

Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/orchestrator_cli/module.py

index 6703a335e9cd426ef6c36962e314b9077908092e..7da5e02123dae630c0a24edfb2cf896047a4958a 100644 (file)
@@ -24,6 +24,7 @@ class OrchestratorCli(orchestrator.OrchestratorClientMixin, MgrModule):
     MODULE_OPTIONS = [
         {
             'name': 'orchestrator',
+            'type': 'str',
             'default': None,
             'desc': 'Orchestrator backend',
             'enum_allowed': ['ssh', 'rook', 'ansible', 'deepsea',