summaryrefslogtreecommitdiff
path: root/meetingtools/ac
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-10-08 13:51:09 +0200
committerLeif Johansson <leifj@sunet.se>2012-10-08 13:51:09 +0200
commit75a8540989bae973093f0589b32274264f9cad2e (patch)
tree103c683f0acd1b289aa487e81dbb65e65dc728dc /meetingtools/ac
parente5e29806cf16d3dff7cb74f9e1acd4159570d4c9 (diff)
fix but: need to return the root of the ElementTree
Diffstat (limited to 'meetingtools/ac')
-rw-r--r--meetingtools/ac/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meetingtools/ac/api.py b/meetingtools/ac/api.py
index 5fbcfbf..230bae8 100644
--- a/meetingtools/ac/api.py
+++ b/meetingtools/ac/api.py
@@ -149,7 +149,7 @@ class ACPClient():
p = self._find_or_create_principal(key,value,t,d)
cache[key] = etree.tostring(p)
else:
- p = etree.parse(StringIO(cache[key]))
+ p = etree.parse(StringIO(cache[key])).getroot()
return p
def find_principal(self,key,value,t):