AttributeError: type object 'str' has no attribute 'format_defaults'

Bug #1522532 reported by Davanum Srinivas (DIMS)
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
oslo.config
New
Undecided
Unassigned

Bug Description

Ceilometer fails with latest oslo.config

Traceback (most recent call last):
  File ".tox/py34/bin/oslo-config-generator", line 10, in <module>
    sys.exit(main())
  File "/home/travis/build/dims/ceilometer/.tox/py34/src/oslo.config/oslo_config/generator.py", line 258, in main
    generate(conf)
  File "/home/travis/build/dims/ceilometer/.tox/py34/src/oslo.config/oslo_config/generator.py", line 248, in generate
    _output_opts(formatter, group, namespaces)
  File "/home/travis/build/dims/ceilometer/.tox/py34/src/oslo.config/oslo_config/generator.py", line 228, in _output_opts
    f.format(opt)
  File "/home/travis/build/dims/ceilometer/.tox/py34/src/oslo.config/oslo_config/generator.py", line 156, in format
    defaults = opt.type.format_defaults(opt.default, opt.sample_default)
AttributeError: type object 'str' has no attribute 'format_defaults'
ERROR: InvocationError: '/home/travis/build/dims/ceilometer/.tox/py34/bin/oslo-config-generator --config-file=etc/ceilometer/ceilometer-config-generator.conf'

Revision history for this message
Haïkel Guémar (hguemar) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.