

def get_deployment_engine_class(provider):
    '\n    Import an engine by name\n    :provider: The provider you want to deploy to\n    :type provider: str\n    :returns: The deployment Engine\n    :rtype: cactus.deployment.engine.BaseDeploymentEngine\n    '
    engine_path = PROVIDER_MAPPING.get(provider, None)
    logger.debug('Loading Deployment Engine for %s: %s', provider, engine_path)
    if (engine_path is None):
        return None
    (module, engine) = engine_path.rsplit('.', 1)
    try:
        _mod = __import__(e, fromlist=[engine])
    except ImportError as e:
        logger.error('Unable to import requested engine (%s) for provider %s', engine, provider)
        logger.error('A required library was missing: %s', e.message)
        logger.error('Please install the library and try again')
    else:
        return getattr(_mod, engine)

dataset/ETHPy150Open koenbok/Cactus/cactus/deployment/__init__.py get_deployment_engine_class/VarMisuse@70/181 `module`->`e`