os-apply-config --key doesn't work for non-string values
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-apply-config |
Fix Released
|
Medium
|
Roman Podoliaka |
Bug Description
When trying to print a non-string value I get the following error:
$ sudo os-apply-config --key nova.baremetal.
Traceback (most recent call last):
File "/usr/local/
sys.
File "/opt/stack/
opts.
File "/opt/stack/
value_
File "/opt/stack/
if not re.match(
File "/opt/stack/
return _compile(pattern, flags).
TypeError: expected string or buffer
This is caused by the fact, that ensure_type() function accepts string values, but a parsed is passed (in this case, bool).
Changed in os-apply-config: | |
status: | New → Incomplete |
status: | Incomplete → Confirmed |
assignee: | nobody → Roman Podolyaka (rpodolyaka) |
Changed in os-apply-config: | |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. openstack. org/53149
Review: https:/