'Update an existing software deployment.'

@util.policy_enforce
def update(self, req, deployment_id, body):

    update_data = dict(((k, body.get(k)) for k in ('config_id', 'input_values', 'output_values', 'action', 'status', 'status_reason') if (body.get(k, None) is not None)))
    sd = self.rpc_client.update_software_deployment(req.context, deployment_id, **update_data)
    return {'software_deployment': sd}
