'Do the actual PUT/update'

def _update(self, context, host, binary, payload):

    try:
        self.host_api.service_update(context, host, binary, payload)
    except (exception.HostBinaryNotFound, exception.HostMappingNotFound) as exc:
        raise webob.exc.HTTPNotFound(explanation=exc.format_message())
