Revision cc9af1c3 ncclient/operations/retrieve.py

b/ncclient/operations/retrieve.py
60 60
    def request(self, filter=None):
61 61
        spec = Get.SPEC.copy()
62 62
        if filter is not None:
63
            spec['subtree'].append(util.build_filter(*filter))
63
            spec['subtree'].append(content.rootchecked(filter. 'filter', 'type'))
64 64
        return self._request(spec)
65 65

  
66 66
class GetConfig(RPC):
......
87 87
            'subtree': util.store_or_url(source, source_url)
88 88
            })
89 89
        if filter is not None:
90
            spec['subtree'].append(util.build_filter(*filter))
90
            spec['subtree'].append(content.rootchecked(filter, 'filter', 'type'))
91 91
        return self._request(spec)
92

  

Also available in: Unified diff