]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
new.py: move docstring into the related function
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 21 Mar 2013 15:26:30 +0000 (16:26 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 21 Mar 2013 15:26:30 +0000 (16:26 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
ceph_deploy/new.py

index abd8c2889968e4c64f6c69d1fd43af8cff124f95..2a4837335fda1e364a8e77139810c556a93f1f82 100644 (file)
@@ -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)