def remote_service_name(relid=None):
    """The remote service name for a given relation-id (or the current relation)"""
    if relid is None:
        unit = remote_unit()
    else:
        units = related_units(relid)
        unit = units[0] if units else None
    return unit.split('/')[0] if unit else None
def remote_service_name ( relid = None ) : if relid is None : unit = remote_unit ( ) else : units = related_units ( relid ) unit = units [ 0 ] if units else None return unit . split ( '/' ) [ 0 ] if unit else None
The remote service name for a given relation-id (or the current relation)