'Ensure an instance with the same name is not already present.'

def _check_instance_exists(self, context, instance):

    if self.driver.instance_exists(instance):
        raise exception.InstanceExists(name=instance.name)
