From: Danny Al-Gaaf Date: Thu, 21 Mar 2013 15:26:30 +0000 (+0100) Subject: new.py: move docstring into the related function X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=06e780b78e68ce8f229018620c5ab858f4561e8a;p=ceph-deploy.git new.py: move docstring into the related function Signed-off-by: Danny Al-Gaaf --- diff --git a/ceph_deploy/new.py b/ceph_deploy/new.py index abd8c28..2a48373 100644 --- a/ceph_deploy/new.py +++ b/ceph_deploy/new.py @@ -25,10 +25,10 @@ def generate_auth_key(): ) return base64.b64encode(header + key) -""" -Search result of getaddrinfo() for a non-localhost-net address -""" def get_nonlocal_ip(host): + """ + Search result of getaddrinfo() for a non-localhost-net address + """ ailist = socket.getaddrinfo(host, None) for ai in ailist: # an ai is a 5-tuple; the last element is (ip, port)