]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/restful: do not start if no certificate is configured
authorSage Weil <sage@redhat.com>
Wed, 21 Jun 2017 16:29:45 +0000 (12:29 -0400)
committerSage Weil <sage@redhat.com>
Wed, 21 Jun 2017 16:32:52 +0000 (12:32 -0400)
commit4e4d81cd704c03f0e0461fc79f1fbc0aadbcb451
tree014ab51022dd7ba551a9f8dac5d553a030445a60
parent4dc471ed605cd08b35234eac5188459d2a41685b
pybind/mgr/restful: do not start if no certificate is configured

This removes the default filename, by the way.  We also work around a
problem with make_server where it sets up the socket to listen before
checking for the cert, thereby making it problematic to rebind to the
port shortly thereafter when we do have a socket.  (SO_REUSEADDR would
be appropriate but there doesn't seem to be an easy way to make
make_server use it.)

Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/restful/module.py