Skip to content

Commit 4b4b620

Browse files
toopyFlorent
authored andcommitted
Copy CONFIG source in case we want to reload it later like in untittests.
1 parent 759e994 commit 4b4b620

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/saml2/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
__author__ = 'rolandh'
44

5+
import copy
56
import sys
67
import os
78
import re
@@ -338,7 +339,7 @@ def load_file(self, config_file, metadata_construction=False):
338339

339340
mod = self._load(config_file)
340341
#return self.load(eval(open(config_file).read()))
341-
return self.load(mod.CONFIG, metadata_construction)
342+
return self.load(copy.deepcopy(mod.CONFIG), metadata_construction)
342343

343344
def load_metadata(self, metadata_conf):
344345
""" Loads metadata into an internal structure """

0 commit comments

Comments
 (0)