Comment 2 for bug 1111327

Revision history for this message
Zhou ShaoYu (hzzhoushaoyu) wrote :

Request as:
PUT /v2/c385278dc70b4b1cbb2c87c7892db7b5/os-quota-sets/c385278dc70b4b1cbb2c87c7892db7b5 HTTP/1.1
Accept: application/json
Accept-Encoding: identity, deflate, compress, gzip
Host: localhost:8774
User-Agent: HTTPie/0.3.0
content-type: application/xml
x-auth-token: 304ab100c4aa405aabaa3998613b190b

<?xml version='1.0' encoding='UTF-8'?>
<quota_set id="c385278dc70b4b1cbb2c87c7892db7b5">
        <security_groups></security_groups>
</quota_set>

causes

2013-02-01 11:46:49.255 ERROR nova.api.openstack.wsgi [req-0747c62b-cf4e-43ca-b70a-02425843e9ab admin admin] Exception handling resource: int() argument must be a string or a number, not 'dict'
2013-02-01 11:46:49.255 TRACE nova.api.openstack.wsgi Traceback (most recent call last):
2013-02-01 11:46:49.255 TRACE nova.api.openstack.wsgi File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 957, in _process_stack
2013-02-01 11:46:49.255 TRACE nova.api.openstack.wsgi action_result = self.dispatch(meth, request, action_args)
2013-02-01 11:46:49.255 TRACE nova.api.openstack.wsgi File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 1046, in dispatch
2013-02-01 11:46:49.255 TRACE nova.api.openstack.wsgi return method(req=request, **action_args)
2013-02-01 11:46:49.255 TRACE nova.api.openstack.wsgi File "/opt/stack/nova/nova/api/openstack/compute/contrib/quotas.py", line 94, in update
2013-02-01 11:46:49.255 TRACE nova.api.openstack.wsgi value = int(body['quota_set'][key])
2013-02-01 11:46:49.255 TRACE nova.api.openstack.wsgi TypeError: int() argument must be a string or a number, not 'dict'
2013-02-01 11:46:49.255 TRACE nova.api.openstack.wsgi