oslo-config-generator fails to generate a yaml when options are using i18n
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.config |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When running oslo-config-
This is not reproducible with json format [2]
Proposed patch will add a yaml representer for this type of field and output is working now [3].
[1]
~~~
[root@overcloud
Traceback (most recent call last):
File "/usr/bin/
sys.
File "/usr/lib/
generate(conf)
File "/usr/lib/
conf=conf)
File "/usr/lib/
default_
File "/usr/lib64/
return dump_all([data], stream, Dumper=SafeDumper, **kwds)
File "/usr/lib64/
dumper.
File "/usr/lib64/
node = self.represent_
File "/usr/lib64/
node = self.yaml_
File "/usr/lib64/
return self.represent_
File "/usr/lib64/
node_value = self.represent_
File "/usr/lib64/
node = self.yaml_
File "/usr/lib64/
return self.represent_
File "/usr/lib64/
node_value = self.represent_
File "/usr/lib64/
node = self.yaml_
File "/usr/lib64/
return self.represent_
File "/usr/lib64/
node_value = self.represent_
File "/usr/lib64/
node = self.yaml_
File "/usr/lib64/
return self.represent_
File "/usr/lib64/
node_item = self.represent_
File "/usr/lib64/
node = self.yaml_
File "/usr/lib64/
return self.represent_
File "/usr/lib64/
node_value = self.represent_
File "/usr/lib64/
node = self.yaml_
File "/usr/lib64/
raise RepresenterErro
yaml.represente
~~~
[2]
~~~
{
"dest": "backup_
"help": "The url where the S3 server is listening.",
"max": null,
"min": null,
"name": "backup_
"secret": false,
"short": null,
"type": "string value"
},
~~~
[3]
~~~
- advanced: false
choices: []
default: null
deprecate
deprecate
deprecate
deprecate
dest: backup_
help: The url where the S3 server is listening.
max: null
metavar: null
min: null
mutable: false
name: backup_
namespace: cinder
positional: false
required: false
sample_
secret: false
short: null
type: string value
~~~
Changed in oslo.config: | |
status: | New → In Progress |
Fix proposed to branch: stable/wallaby /review. opendev. org/c/openstack /oslo.config/ +/794184
Review: https:/