From acf0b68c22777ed61a1e4bcb16aae61b14a5a9ca Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 2 Feb 2018 16:25:26 +0800 Subject: [PATCH] mgr/mgr_module: do not offer empty default value for choose_args as it should be always available. this also silence a pep8 warning. Signed-off-by: Kefu Chai --- src/pybind/mgr/mgr_module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/mgr_module.py b/src/pybind/mgr/mgr_module.py index 1e36c27ffa32..2211df8037b7 100644 --- a/src/pybind/mgr/mgr_module.py +++ b/src/pybind/mgr/mgr_module.py @@ -149,7 +149,7 @@ class CRUSHMap(ceph_module.BasePyCRUSH): @staticmethod def get_default_choose_args(dump): - return dump.get('choose_args', {}).get(CRUSHMap.DEFAULT_CHOOSE_ARGS, []) + return dump.get('choose_args').get(CRUSHMap.DEFAULT_CHOOSE_ARGS, []) class MgrStandbyModule(ceph_module.BaseMgrStandbyModule): -- 2.47.3