Skip to content

Commit bcc1f4c

Browse files
author
Roland Hedberg
committed
Merge pull request #78 from novapost/bug_fixes
Littles Bugs fixes
2 parents aa5c7f6 + 4b4b620 commit bcc1f4c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
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 """

src/saml2/mdstore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ def load(self):
480480
self.parse(_txt)
481481
return True
482482
else:
483-
logger.info("Response status: %s" % response.status)
483+
logger.info("Response status: %s" % response.status_code)
484484
return False
485485

486486

0 commit comments

Comments
 (0)