From: Sage Weil Date: Wed, 26 Apr 2017 14:23:54 +0000 (-0400) Subject: pybind/ceph_daemon: default to prio 0 if unspecified X-Git-Tag: v12.0.3~71^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a734e340e0dccd9fccab7b6f75e77a6495c0c708;p=ceph.git pybind/ceph_daemon: default to prio 0 if unspecified Signed-off-by: Sage Weil --- diff --git a/src/pybind/ceph_daemon.py b/src/pybind/ceph_daemon.py index ae0ba8334eae..0979f396d9f8 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()