Revision e28708d2

b/ncclient/operations/edit.py
42 42
            # TODO: check if it is a valid default-operation
43 43
            sub_ele(node, "default-operation").text = default_operation
44 44
        node.append(validated_element(config, ("config", qualify("config"))))
45
        return self._request(spec)
45
        return self._request(node)
46 46

  
47 47

  
48 48
class DeleteConfig(RPC):
......
52 52
    def request(self, target):
53 53
        node = new_ele("delete-config")
54 54
        node.append(util.datastore_or_url("target", target, self._assert))
55
        return self._request(spec)
55
        return self._request(node)
56 56

  
57 57

  
58 58
class CopyConfig(RPC):
......
63 63
        node = new_ele("copy-config")
64 64
        node.append(util.datastore_or_url("target", target, self._assert))
65 65
        node.append(util.datastore_or_url("source", source, self._assert))
66
        return self._request(spec)
66
        return self._request(node)
67 67

  
68 68

  
69 69
class Validate(RPC):
......
80 80
            logger.debug(e)
81 81
            src = util.datastore_or_url("source", source, self._assert)
82 82
        (node if src.tag == "source" else sub_ele(node, "source")).append(src)
83
        return self._request(spec)
83
        return self._request(node)
84 84

  
85 85

  
86 86
class Commit(RPC):
......
97 97
            if timeout is not None:
98 98
                # TODO check if timeout is a valid integer?
99 99
                sub_ele(node, "confirm-timeout").text = timeout
100
        return self._request(Commit.SPEC)
100
        return self._request(node)
101 101

  
102 102

  
103 103
class DiscardChanges(RPC):

Also available in: Unified diff