]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commit
mon: simplify the admin_socket read logic 108/head
authorPaul Cuzner <pcuzner@redhat.com>
Wed, 23 Aug 2017 21:14:44 +0000 (09:14 +1200)
committerPaul Cuzner <pcuzner@redhat.com>
Wed, 23 Aug 2017 21:14:44 +0000 (09:14 +1200)
commit0c9cc474570c50babcbb4420dd3ac3baf3b42bb9
treea516bb6424665c9c31eb9f222e265aef4c22c9fa
parent7da432531e3c7f071e88b2294e4a529f2eddc198
mon: simplify the admin_socket read logic

The initial commit placed logic in each area that called the admin
socket. This patch separates the admin socket call out to a separate
method, so it gets checked in one place.

Some tidy up and comments added too.
collectors/mon.py