Fix syntax error that was caused in RHEL 7
@@ -86,7 +86,8 @@ class LoadPolicyFromFolder(TestCase):
replacements = {'{IPV6_LOOPBACK}':', ::1'}
for f in os.listdir(policy_config_path):
if f.endswith(".json.in"):
- with open(policy_config_path + "/" + f) as infile, open(policy_config_path+"/"+f[:-3], 'w') as outfile:
+ with open(policy_config_path+"/"+f[:-3], 'w') as outfile:
+ with open(policy_config_path + "/" + f) as infile:
for line in infile:
for src, target in replacements.iteritems():
if ipv6_enabled:
