From a734e340e0dccd9fccab7b6f75e77a6495c0c708 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 26 Apr 2017 10:23:54 -0400 Subject: [PATCH] pybind/ceph_daemon: default to prio 0 if unspecified Signed-off-by: Sage Weil --- src/pybind/ceph_daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/ceph_daemon.py b/src/pybind/ceph_daemon.py index ae0ba8334ea..0979f396d9f 100755 --- a/src/pybind/ceph_daemon.py +++ b/src/pybind/ceph_daemon.py @@ -335,7 +335,7 @@ class DaemonWatcher(object): self._stats = OrderedDict() for section_name, section_stats in self._schema.items(): for name, schema_data in section_stats.items(): - prio = schema_data.get('priority') + prio = schema_data.get('priority', 0) if self._should_include(section_name, name, prio): if section_name not in self._stats: self._stats[section_name] = OrderedDict() -- 2.47.3