'Updates a consumer.
:param str consumer_id: The ID of the consumer that will be updated
:param str description: Optional field to add notes about the consumer
For more information, please refer to the official
API reference:
https://developer.openstack.org/api-ref/identity/v3-ext/#update-consumer'

def update_consumer(self, consumer_id, description=None):

    post_body = {'description': description}
    post_body = json.dumps({'consumer': post_body})
    (resp, body) = self.patch(('OS-OAUTH1/consumers/%s' % consumer_id), post_body)
    self.expected_success(200, resp.status)
    body = json.loads(body)
    return rest_client.ResponseBody(resp, body)
