1. 03 Apr, 2019 1 commit
  2. 12 Mar, 2019 1 commit
    • Nir Soffer's avatar
      Fix handling of optional params in blockCopy() · 5d6228d4
      Nir Soffer authored
      Commit 2b4bd07e (Add check for params, nparams being a dictionary)
      changed the way the optional params argument is treated. If
      libvirt.virDomain.blockCopy() is called without specifying params,
      params is None, and the call will fail with:
      
          TypeError: block params must be a dictionary
      
      This is wrong as params is defined as kwarg, breaking existing libvirt
      users like oVirt. Add a check for Py_None, so we accept either a dict or
      None and fail with TypeError with anything else.
      
      Resolves: https://bugzilla.redhat.com/1687114Signed-off-by: 's avatarNir Soffer <nsoffer@redhat.com>
      5d6228d4
  3. 04 Mar, 2019 1 commit
  4. 25 Feb, 2019 1 commit
  5. 07 Feb, 2019 1 commit
  6. 24 Jan, 2019 3 commits
  7. 22 Jan, 2019 1 commit
  8. 15 Jan, 2019 1 commit
  9. 03 Dec, 2018 1 commit
  10. 26 Nov, 2018 1 commit
  11. 20 Nov, 2018 5 commits
  12. 04 Nov, 2018 1 commit
  13. 01 Nov, 2018 2 commits
    • Philipp Hahn's avatar
      event-test.py: Report ERROR events · 9af6f1a5
      Philipp Hahn authored
      VIR_DOMAIN_EVENT_ID_IO_ERROR and VIR_DOMAIN_EVENT_ID_IO_ERROR_REASON
      callbacks receive the same 'action' parameter, so also translate that
      numeric action to a descriptive text for the first callback.
      Signed-off-by: Philipp Hahn's avatarPhilipp Hahn <hahn@univention.de>
      9af6f1a5
    • Philipp Hahn's avatar
      event-test.py: Fix ERROR event · c8b6e5fc
      Philipp Hahn authored
      ERROR_EVENTS translates the numeric 'action' argument to a description,
      not the 'reason' argument which already contains a descriptive string
      like 'enospc'.
      
      > Traceback (most recent call last):
      >   File "/usr/lib/python2.7/dist-packages/libvirt.py", line 4661, in _dispatchDomainEventIOErrorReasonCallback
      >     reason, opaque)
      >   File "libvirt-python/examples/event-test.py", line 536, in myDomainEventIOErrorReasonCallback
      >     dom.name(), dom.ID(), srcpath, devalias, action, ERROR_EVENTS[reason]))
      >   File "libvirt-python/examples/event-test.py", line 474, in __getitem__
      >     data = self.args[item]
      > TypeError: tuple indices must be integers, not str
      
      Fixes: f5928c67Signed-off-by: Philipp Hahn's avatarPhilipp Hahn <hahn@univention.de>
      c8b6e5fc
  14. 01 Oct, 2018 1 commit
  15. 24 Sep, 2018 19 commits