Revision b2d60e49 ncclient/operations/lock.py

b/ncclient/operations/lock.py
28 28
    
29 29
    def request(self, target):
30 30
        node = new_ele("lock")
31
        sub_ele(sub_ele(node, "target"), "running")
31
        sub_ele(sub_ele(node, "target"), target)
32 32
        return self._request(node)
33 33

  
34 34

  
......
38 38
    
39 39
    def request(self, target):
40 40
        node = new_ele("unlock")
41
        sub_ele(sub_ele(node, "target"), "running")
41
        sub_ele(sub_ele(node, "target"), target)
42 42
        return self._request(node)
43 43

  
44 44

  

Also available in: Unified diff