]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr: fix crashable DaemonStateIndex::get calls
authorJohn Spray <john.spray@redhat.com>
Sat, 23 Sep 2017 17:21:47 +0000 (13:21 -0400)
committerJohn Spray <john.spray@redhat.com>
Mon, 25 Sep 2017 10:20:54 +0000 (06:20 -0400)
commitade4827d86bb2bc79466a2da040475651c2aae0d
tree0e7ef85c5cd217a524d7c24e3d70c6fd47b68862
parentdc23bade5e4ceccbb49fb513c271ed905058f40f
mgr: fix crashable DaemonStateIndex::get calls

This function was recently fixed to return null
on missing entries: handle that properly.

Fixes: http://tracker.ceph.com/issues/17737
Signed-off-by: John Spray <john.spray@redhat.com>
src/mgr/PyModules.cc
src/mgr/PyModules.h