Revision ce5fb329 ncclient/operations/lock.py

b/ncclient/operations/lock.py
14 14

  
15 15
'Locking-related NETCONF operations'
16 16

  
17
from copy import deepcopy
18

  
17 19
from rpc import RPC
18 20

  
19 21
class Lock(RPC):
......
37 39

  
38 40
        :rtype: :ref:`return`
39 41
        """
40
        spec = Lock.SPEC.copy()
42
        spec = deepcopy(Lock.SPEC)
41 43
        spec['subtree']['subtree']['tag'] = target
42 44
        return self._request(spec)
43 45

  
......
63 65

  
64 66
        :rtype: :ref:`return`
65 67
        """
66
        spec = Unlock.SPEC.copy()
68
        spec = deepcopy(Unlock.SPEC)
67 69
        spec['subtree']['subtree']['tag'] = target
68 70
        return self._request(spec)
69 71

  

Also available in: Unified diff