mirror of
https://github.com/ceph/ceph
synced 2025-03-07 08:49:15 +00:00
qa/tasks/tempest.py: use configparser from six.moves
as ConfigParser is offerd by `configparser` module in Python3, so use six.moves before the migration. Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
6ad2ca9767
commit
b1726bfb08
@ -4,6 +4,8 @@ Deploy and configure Tempest for Teuthology
|
||||
import contextlib
|
||||
import logging
|
||||
|
||||
from six.moves import configparser
|
||||
|
||||
from teuthology import misc as teuthology
|
||||
from teuthology import contextutil
|
||||
from teuthology.exceptions import ConfigError
|
||||
@ -108,7 +110,6 @@ def configure_instance(ctx, config):
|
||||
assert isinstance(config, dict)
|
||||
log.info('Configuring Tempest')
|
||||
|
||||
import ConfigParser
|
||||
for (client, cconfig) in config.items():
|
||||
run_in_tempest_venv(ctx, client,
|
||||
[
|
||||
@ -135,7 +136,7 @@ def configure_instance(ctx, config):
|
||||
'keystone_public_port': str(public_port),
|
||||
}
|
||||
|
||||
cpar = ConfigParser.ConfigParser()
|
||||
cpar = configparser.ConfigParser()
|
||||
cpar.read(local_conf)
|
||||
setup_logging(ctx, cpar)
|
||||
to_config(cconfig, params, 'auth', cpar)
|
||||
|
Loading…
Reference in New Issue
Block a user