def profile_name(org_vm, profile_inst, short=False):
    """
    Return Org, Profile, Version as a string from the properties in the
    profile instance.  The returned form is the form Org:Name:Version or
    Org:Name if the optional argument short is TRUE
    """
    try:
        name_tuple = get_profile_name(org_vm, profile_inst)
    except Exception as ex:  # pylint: disable=broad-except
        print('GET_FULL_PROFILE_NAME exception %sm tuple=%r inst=%s' %
              (ex, name_tuple, profile_inst))
        return("UNKNOWN")
    if short:
        return "%s:%s" % (name_tuple[0], name_tuple[1])

    return "%s:%s:%s" % (name_tuple[0], name_tuple[1], name_tuple[2])
def profile_name ( org_vm , profile_inst , short = False ) : try : name_tuple = get_profile_name ( org_vm , profile_inst ) except Exception as ex : print ( 'GET_FULL_PROFILE_NAME exception %sm tuple=%r inst=%s' % ( ex , name_tuple , profile_inst ) ) return ( "UNKNOWN" ) if short : return "%s:%s" % ( name_tuple [ 0 ] , name_tuple [ 1 ] ) return "%s:%s:%s" % ( name_tuple [ 0 ] , name_tuple [ 1 ] , name_tuple [ 2 ] )
Return Org, Profile, Version as a string from the properties in the
    profile instance.  The returned form is the form Org:Name:Version or
    Org:Name if the optional argument short is TRUE