

def _get_override(self, override_spec):

    def override_ip(agent, ip_type):
        return dict(ip=nova.get_server_ip(self.openstack_client.nova, agent['id'], ip_type))
    if override_spec:
        if override_spec.get('ip'):
            return functools.partial(override_ip, ip_type=override_spec.get('ip'))

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