Support for host=None in get_host_name_ip

    if host is None:
        host = socket.gethostname()

Change-Id: I8a18615dc8cd47ad59c570f782f8ffbfd246b5a1
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/gen_misc.py b/lib/gen_misc.py
index d43aa20..4b7780a 100755
--- a/lib/gen_misc.py
+++ b/lib/gen_misc.py
@@ -328,7 +328,7 @@
     return parm
 
 
-def get_host_name_ip(host,
+def get_host_name_ip(host=None,
                      short_name=0):
     r"""
     Get the host name and the IP address for the given host and return them as
@@ -341,6 +341,7 @@
                                     short_host.
     """
 
+    host = dft(host, socket.gethostname())
     host_name = socket.getfqdn(host)
     try:
         host_ip = socket.gethostbyname(host)