

def deploy(self, deployment, base_dir=None, server_endpoint=None):
    agents = {
        
    }
    if (not deployment):
        agents.update(dict(local=dict(id='local', mode='alone', node='localhost')))
    if deployment.get('template'):
        if (not self.openstack_client):
            raise DeploymentException('OpenStack client is not initialized. Template-based deployment is ignored.')
        else:
            agents.update(self._deploy_from_hot(deployment, server_endpoint, base_dir=base_dir))
    if deployment.get('agents'):
        agents.update(dict(((a['id'], a) for a in deployment.get('agents'))))
    return agents

dataset/ETHPy150Open openstack/shaker/shaker/engine/deploy.py Deployment.deploy/original