]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/tasks/tempest.py: always write str is value of options
authorKefu Chai <kchai@redhat.com>
Mon, 6 Apr 2020 08:37:55 +0000 (16:37 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 7 Apr 2020 13:51:23 +0000 (21:51 +0800)
commit5ef3a5fe3282146b56bd2a589fef17c28d57e8e2
treed8f8186d0a27fb7dfa1cba2df87690259c546124
parentb1726bfb08f7a408b37f6c6d1d7dc80eae0d6423
qa/tasks/tempest.py: always write str is value of options

in Python2, ConfigParser is almost the same as RawConfigParser, which
allows set non-string values, but in Python3, ConfigParser.set() only
accepts strings as value of option.

since we do not use "cpar" as an internal storage for options, it does
not matter what type of options we set using ConfigParser as long as it
can be consumed by tempest. boolean settings are translated to "true" or
"false". see also
https://docs.openstack.org/tempest/latest/sampleconf.html

Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/tasks/tempest.py