Revision e769089a ncclient/transport/session.py

b/ncclient/transport/session.py
194 194

  
195 195
    def callback(self, root, raw):
196 196
        tag, attrs = root
197
        if tag == qualify("hello"):
197
        if (tag == qualify("hello")) or (tag == "hello"):
198 198
            try:
199 199
                id, capabilities = HelloHandler.parse(raw)
200 200
            except Exception as e:
......
220 220
        sid, capabilities = 0, []
221 221
        root = to_ele(raw)
222 222
        for child in root.getchildren():
223
            if child.tag == qualify("session-id"):
223
            if child.tag == qualify("session-id") or child.tag == "session-id":
224 224
                sid = child.text
225
            elif child.tag == qualify("capabilities"):
225
            elif child.tag == qualify("capabilities") or child.tag == "capabilities" :
226 226
                for cap in child.getchildren():
227
                    if cap.tag == qualify("capability"):
227
                    if cap.tag == qualify("capability") or cap.tag == "capability":
228 228
                        capabilities.append(cap.text)
229 229
        return sid, Capabilities(capabilities)

Also available in: Unified diff