'Returns the short name for a given qualified host name.
Checks the host name to see if it is the fully qualified host name
and returns part before the dot. If there is no dot in the host name
the full host name is returned.
:param host_name: the fully qualified host name
:returns: string -- the short host_name'

def get_host_short_name(self, host_name):

    host_array = host_name.split('.')
    if (len(host_array) > 1):
        short_host_name = host_array[0]
    else:
        short_host_name = host_name
    return self.generate_unique_trunc_host(short_host_name)
