diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2014-04-12 21:14:26 +0200 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2014-04-12 21:14:26 +0200 |
commit | fca906e9b0b2df455885119c9a9603171874ef4a (patch) | |
tree | 3017f7da8cf73cf49cc92cafcd02948664c068ed /src/saml2/saml.py | |
parent | 13d63480c9fade5a3486ed23fd6c10b755ec9185 (diff) | |
download | pysaml2-fca906e9b0b2df455885119c9a9603171874ef4a.tar.gz |
Remove xsi:nil from extension_attributes if there is a value.
Diffstat (limited to 'src/saml2/saml.py')
-rw-r--r-- | src/saml2/saml.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/saml2/saml.py b/src/saml2/saml.py index ab135b68..d24a37ca 100644 --- a/src/saml2/saml.py +++ b/src/saml2/saml.py @@ -246,6 +246,8 @@ class AttributeValueBase(SamlBase): # clear type #self.clear_type() self.set_text(tree.text) + if XSI_NIL in self.extension_attributes: + del self.extension_attributes[XSI_NIL] try: typ = self.extension_attributes[XSI_TYPE] _verify_value_type(typ, getattr(self, "text")) |