python client crashes because of auth_token type
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-ceilometerclient |
Fix Released
|
Medium
|
Marc Solanas |
Bug Description
When initializing a client object with the following lines:
import ceilometerclien
client = clients.
this error is displayed when a query is performed:
File "/opt/stack/
resp, body_iter = self._http_
File "/opt/stack/
auth_token = self.auth_token()
TypeError: 'unicode' object is not callable
Having a look at the get_client function in ceilometer/
if kwargs.
token = kwargs.
endpoint = kwargs.
elif (kwargs.
ks_kwargs = {
}
_ksclient = _get_ksclient(
token = ((lambda: kwargs.
if kwargs.
so "token" could have different types depending on the case.
Changed in python-ceilometerclient: | |
assignee: | nobody → Marc Solanas (msolanas) |
status: | New → In Progress |
Changed in python-ceilometerclient: | |
importance: | Undecided → Medium |
Changed in python-ceilometerclient: | |
milestone: | none → 1.3.0 |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/58051
Review: https:/