]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/ceph_daemon: default to prio 0 if unspecified
authorSage Weil <sage@redhat.com>
Wed, 26 Apr 2017 14:23:54 +0000 (10:23 -0400)
committerDan Mick <dan.mick@redhat.com>
Wed, 26 Apr 2017 18:20:08 +0000 (11:20 -0700)
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/ceph_daemon.py

index ae0ba8334eae1655b0ddb5e48cdeb4a87d7ffeaa..0979f396d9f876e9c208c791b417af8468847d8d 100755 (executable)
@@ -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()