/usr/lib/python2.7/site-packages/vnc_cfg_api_server/vnc_cfg_api_server.py in obj_perms_http_get(self=<vnc_cfg_api_server.vnc_cfg_api_server.VncApiServer object>)
2433 result['permissions'] = self._permissions.obj_perms(get_request(),
2434 obj_uuid)
2435 if 'token' in token_info.keys():
2436 if 'project' in token_info['token'].keys():
2437 domain = None
token_info = ''
token_info.keys undefined
<type 'exceptions.AttributeError'>: 'str' object has no attribute 'keys'
__class__ = <type 'exceptions.AttributeError'>
__delattr__ = <method-wrapper '__delattr__' of exceptions.AttributeError object>
__dict__ = {}
__doc__ = 'Attribute not found.'
__format__ = <built-in method __format__ of exceptions.AttributeError object>
__getattribute__ = <method-wrapper '__getattribute__' of exceptions.AttributeError object>
__getitem__ = <method-wrapper '__getitem__' of exceptions.AttributeError object>
__getslice__ = <method-wrapper '__getslice__' of exceptions.AttributeError object>
__hash__ = <method-wrapper '__hash__' of exceptions.AttributeError object>
__init__ = <method-wrapper '__init__' of exceptions.AttributeError object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of exceptions.AttributeError object>
__reduce_ex__ = <built-in method __reduce_ex__ of exceptions.AttributeError object>
__repr__ = <method-wrapper '__repr__' of exceptions.AttributeError object>
__setattr__ = <method-wrapper '__setattr__' of exceptions.AttributeError object>
__setstate__ = <built-in method __setstate__ of exceptions.AttributeError object>
__sizeof__ = <built-in method __sizeof__ of exceptions.AttributeError object>
__str__ = <method-wrapper '__str__' of exceptions.AttributeError object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__unicode__ = <built-in method __unicode__ of exceptions.AttributeError object>
args = ("'str' object has no attribute 'keys'",)
message = "'str' object has no attribute 'keys'"
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 2253, in handler_trap_exception
response = handler(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 2435, in obj_perms_http_get
if 'token' in token_info.keys():
AttributeError: 'str' object has no attribute 'keys'
Seeing below error at API
/usr/lib/ python2. 7/site- packages/ vnc_cfg_ api_server/ vnc_cfg_ api_server. py in obj_perms_ http_get( self=<vnc_ cfg_api_ server. vnc_cfg_ api_server. VncApiServer object>) 'permissions' ] = self._permissio ns.obj_ perms(get_ request( ), 'token' ].keys( ): AttributeError' >: 'str' object has no attribute 'keys' AttributeError' > AttributeError object> AttributeError object> ute__ = <method-wrapper '__getattribute__' of exceptions. AttributeError object> AttributeError object> AttributeError object> AttributeError object> AttributeError object> AttributeError object> AttributeError object> AttributeError object> AttributeError object> AttributeError object> AttributeError object> AttributeError object> ook__ = <built-in method __subclasshook__ of type object> AttributeError object>
2433 result[
2434 obj_uuid)
2435 if 'token' in token_info.keys():
2436 if 'project' in token_info[
2437 domain = None
token_info = ''
token_info.keys undefined
<type 'exceptions.
__class__ = <type 'exceptions.
__delattr__ = <method-wrapper '__delattr__' of exceptions.
__dict__ = {}
__doc__ = 'Attribute not found.'
__format__ = <built-in method __format__ of exceptions.
__getattrib
__getitem__ = <method-wrapper '__getitem__' of exceptions.
__getslice__ = <method-wrapper '__getslice__' of exceptions.
__hash__ = <method-wrapper '__hash__' of exceptions.
__init__ = <method-wrapper '__init__' of exceptions.
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of exceptions.
__reduce_ex__ = <built-in method __reduce_ex__ of exceptions.
__repr__ = <method-wrapper '__repr__' of exceptions.
__setattr__ = <method-wrapper '__setattr__' of exceptions.
__setstate__ = <built-in method __setstate__ of exceptions.
__sizeof__ = <built-in method __sizeof__ of exceptions.
__str__ = <method-wrapper '__str__' of exceptions.
__subclassh
__unicode__ = <built-in method __unicode__ of exceptions.
args = ("'str' object has no attribute 'keys'",)
message = "'str' object has no attribute 'keys'"
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last): python2. 7/site- packages/ vnc_cfg_ api_server/ vnc_cfg_ api_server. py", line 2253, in handler_ trap_exception python2. 7/site- packages/ vnc_cfg_ api_server/ vnc_cfg_ api_server. py", line 2435, in obj_perms_http_get
File "/usr/lib/
response = handler(*args, **kwargs)
File "/usr/lib/
if 'token' in token_info.keys():
AttributeError: 'str' object has no attribute 'keys'