def _match_instname_wo_host(instance_name1, instance_name2):
    """
    Test 2 instance names for equality ignoring the host name. Creates copy
    to avoid changing input instance names.
    """
    in1 = instance_name1.copy()
    in2 = instance_name2.copy()
    in1.host = None
    in2.host = None
    return in1 == in2