Package: python-ncclient
Version: 0.4.1-1
Severity: important
Tags: upstream

Dear Maintainer,

After creating a dev with:

    dev = ncclient.manager.connect(...)

I tried to lock the candidate datastore with:

    with dev.locked(target='candidate'):
            ...

But that raised an exception:

    Traceback (most recent call last):
      File "t.py", line 13, in <module>
        d.config_commit(c)
      File "src/dmnetconf/__init__.py", line 31, in config_commit
        with self.dev.locked(target='candidate'):
      File "/usr/lib/python2.7/dist-packages/ncclient/operations/lock.py", line 
66, in __enter__
        Lock(self.session, raise_mode=RaiseMode.ERRORS).request(self.target)
    TypeError: __init__() takes at least 3 arguments (3 given)

The exception was raised because Lock.__init__ (RPC.__init__ in
/usr/lib/python2.7/dist-packages/ncclient/operations/rpc.py) expects a
device_handler argument that was not passed.


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (700, 'testing'), (600, 'stable'), (400, 'unstable'), (150, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) (ignored: LC_ALL set to 
en_US.ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-ncclient depends on:
ii  dpkg                  1.17.13
ii  python                2.7.8-1
ii  python-lxml           3.4.0-1
ii  python-paramiko       1.15.1-1
ii  python-pkg-resources  5.5.1-1

python-ncclient recommends no packages.

python-ncclient suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to