def hostname_instance_exists(self, db, hostname):

        result = db.servers.find_one({'hostname': hostname})
        # Should only ever have one instance_id in aerostat.
        if result and result['instance_id']:
            logging.info('Hostname/instance pair exists for %s' % hostname)
            return True
        else:
            logging.info('Hostname/inst pair does\'t exist for %s' % hostname)
            return False
Exports a resource.
dataset/ETHPy150Open urbanairship/aerostat/aerostat/registrar.py/Registrar.hostname_instance_exists--crossover with--dataset/ETHPy150Open django-import-export/django-import-export/import_export/resources.py/Resource.export