def handle(self, request, context):
    try:
        datastore = self.context['datastore'].split(',')[0]
        datastore_version = self.context['datastore'].split(',')[1]
        LOG.info('Launching database instance with parameters {name=%s, volume=%s, flavor=%s, datastore=%s, datastore_version=%s, dbs=%s, users=%s, backups=%s, nics=%s, replica_of=%s}', context['name'], context['volume'], context['flavor'], datastore, datastore_version, self._get_databases(context), self._get_users(context), self._get_backup(context), self._get_nics(context), context.get('master'))
        api.trove.instance_create(request, context['name'], context['volume'], context['flavor'], datastore=datastore, datastore_version=datastore_version, databases=self._get_databases(context), users=self._get_users(context), restore_point=self._get_backup(context), nics=self._get_nics(context), replica_of=context.get('master'))
        return True
    except Exception:
        exceptions.handle(request)
        return False
def handle(self, request, context):
    try:
        datastore = self.context['datastore'].split(',')[0]
        datastore_version = self.context['datastore'].split(',')[1]
        LOG.info('Launching database instance with parameters {name=%s, volume=%s, flavor=%s, datastore=%s, datastore_version=%s, dbs=%s, users=%s, backups=%s, nics=%s, replica_of=%s}', context['name'], context['volume'], context['flavor'], datastore, datastore_version, self._get_databases(context), self._get_users(context), self._get_backup(context), self._get_nics(context), context.get('master'))
        api.trove.instance_create(request, context['name'], context['volume'], context['flavor'], datastore=datastore, datastore_version=datastore_version, databases=self._get_databases(context), users=self._get_users(context), restore_point=self._get_backup(context), nics=self._get_nics(context), replica_of=context.get('master'))
        return True
    except Exception:
        exceptions.handle(request)
        return False