]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Wed, 3 Jun 2020 11:56:59 +0000 (19:56 +0800)
commita01bd93a9603d70aaf399ee43760578faa6df21c
treea10d5845f35f21f36d3ce196dd3cfb46d9ead3c3
parent545b7e81a6200a0fa68d7821ac9b85017bce6940
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>
(cherry picked from commit 5ef3a5fe3282146b56bd2a589fef17c28d57e8e2)
qa/tasks/tempest.py