]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Don't redefine 'remote'
authorZack Cerza <zack.cerza@inktank.com>
Mon, 11 Aug 2014 20:18:50 +0000 (14:18 -0600)
committerZack Cerza <zack.cerza@inktank.com>
Mon, 11 Aug 2014 20:18:50 +0000 (14:18 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/task/internal.py

index 9fb1b38801fbbfbf4a72bcee178bd85dfade9a6a..aa29a3b65f48be5d31b679586d1d64e5138ade16 100644 (file)
@@ -239,7 +239,7 @@ def serialize_remote_roles(ctx, config):
         with file(os.path.join(ctx.archive, 'info.yaml'), 'r+') as info_file:
             info_yaml = yaml.safe_load(info_file)
             info_file.seek(0)
-            info_yaml['cluster'] = dict([(remote.name, {'roles': roles}) for remote, roles in ctx.cluster.remotes.iteritems()])
+            info_yaml['cluster'] = dict([(rem.name, {'roles': roles}) for rem, roles in ctx.cluster.remotes.iteritems()])
             yaml.safe_dump(info_yaml, info_file, default_flow_style=False)