]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commit
mon.py: Use short hostname.
authorGary Lowell <glowell@inktank.com>
Tue, 19 Mar 2013 06:01:37 +0000 (23:01 -0700)
committerGary Lowell <glowell@inktank.com>
Tue, 19 Mar 2013 06:01:37 +0000 (23:01 -0700)
commitff05e605182a8378798d4cf82eb54a8a451270ca
tree2e2cdea607a2df9817aa3db542194fcc1b15e973
parent4e84e6ce08bd4090c9d5e701e7a5224c4d2c52e9
mon.py:  Use short hostname.

Depending on the system configuration, gethostname can return
either a short name or the fqdn.  Trim the return from
socket.gethostname() to just the hostname.

Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
ceph_deploy/mon.py