def whoami(hostname=MYHOSTNAME):
    try:
        for host in foundation.RomeoKeyValue.search('HOSTNAME', value=hostname):
            for ancestor in host.ANCESTORS:
                if ancestor.KEY != 'SERVER': continue
                return ancestor
    except IndexError: pass
    raise IdentityCrisis('you appear to be having an identity crisis')


###############################################################################
# Avoid importation circularites
###############################################################################
#internal library packages
Given a hostname return the Romeo object
dataset/ETHPy150Open OrbitzWorldwide/droned/romeo/lib/romeo/__init__.py/whoami