def parse_hostname_param(hostname):
    """Parse the hostname field and qualify the entries

    This will take a comma delimited string of one or more hostnames and
    return an array of fully qualified hostnames.  Each will be terminated
    with a '.' character.
    """

    hostnames = []
    for hn in hostname.split(','):
        if hn.endswith('.'):
            hostnames.append(hn)
        else:
            hostnames.append(hn + '.')

    return hostnames