Revision de2c572c
b/ncclient/operations/lock.py | ||
---|---|---|
49 | 49 |
|
50 | 50 |
:rtype: :ref:`return` |
51 | 51 |
""" |
52 |
node = new_ele("lock") |
|
52 |
node = new_ele("unlock")
|
|
53 | 53 |
sub_ele(sub_ele(node, "target"), "running") |
54 | 54 |
return self._request(node) |
55 | 55 |
|
b/ncclient/operations/rpc.py | ||
---|---|---|
184 | 184 |
if tag != qualify("rpc-reply"): |
185 | 185 |
return |
186 | 186 |
for key in attrs: # in the <rpc-reply> attributes |
187 |
logger.debug("key=%s" % key) |
|
188 | 187 |
if key == "message-id": # if we found msgid attr |
189 | 188 |
id = attrs[key] # get the msgid |
190 | 189 |
with self._lock: |
Also available in: Unified diff