]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Merge pull request #30829 from kshtsk/wip-misc-drop-legacy-code-in-skeleton_config
authorKefu Chai <kchai@redhat.com>
Fri, 18 Oct 2019 08:06:23 +0000 (16:06 +0800)
committerGitHub <noreply@github.com>
Fri, 18 Oct 2019 08:06:23 +0000 (16:06 +0800)
tasks/ceph: drop testdir replacement in skeleton_config

Reviewed-by: Kefu Chai <kchai@redhat.com>
1  2 
qa/tasks/ceph.py

index d82f2f23ce1d0a139512371416cc763dec366f48,061ecaee8befa21325e204c69e937272d94b3d26..21713eed131a74082e681063edbdf5d3dee02263
@@@ -479,11 -479,9 +479,9 @@@ def skeleton_config(ctx, roles, ips, mo
      Use conf.write to write it out, override .filename first if you want.
      """
      path = os.path.join(os.path.dirname(__file__), 'ceph.conf.template')
-     t = open(path, 'r')
-     skconf = t.read().format(testdir=teuthology.get_testdir(ctx))
-     conf = configobj.ConfigObj(StringIO(skconf), file_error=True)
+     conf = configobj.ConfigObj(path, file_error=True)
      mon_hosts = []
 -    for role, addr in mons.iteritems():
 +    for role, addr in mons.items():
          mon_cluster, _, _ = teuthology.split_role(role)
          if mon_cluster != cluster:
              continue