osc_lib attempts string actions on int objects when determining auth API version
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
Fix Released
|
Medium
|
Unassigned |
Bug Description
When using a clouds.yaml config, Python will convert things in yaml to matching python objects. An unquoted number becomes an int.
However, osc-lib does not attempt to stringify the things it gets from config, but assumes it'll be a string.
Traceback (most recent call last):
File "/Users/
ret_val = super(OpenStack
File "/Users/
self.
File "/Users/
super(
File "/Users/
argparse=
File "/Users/
**kwargs
File "/Users/
config = self.auth_
File "/Users/
config = self._auth_
File "/Users/
if (config.
AttributeError: 'int' object has no attribute 'starts with'
Quoting the number in yaml works around this, but obviously the code should ensure a string.
patch https:/ /review. openstack. org/#/c/ 388832/ fixes the issue