def init(name):
        settings = get_xblock_settings()
        sleep_seconds = settings.get("sleep_timeout", 10)
        providers = settings.get("providers")
        config = providers.get(name)
        if config and isinstance(config, dict):
            provider_type = config.get("type")
            if provider_type == "openstack" or not provider_type:
                return OpenstackProvider(name, config, sleep_seconds)
            elif provider_type == "gcloud":
                return GcloudProvider(name, config, sleep_seconds)