From cd36745d8763712dac49a322ce875999c3e1797c Mon Sep 17 00:00:00 2001 From: Pavel Cahyna Date: Thu, 7 Nov 2019 21:19:33 +0100 Subject: [PATCH] Make a class new-style (derive from object) Otherwise super() fails. Not necessary with Python 3, but necessary with Python 2 (where classic classes are the default --- library/blivet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/blivet.py b/library/blivet.py index 40c7e032..ed061530 100644 --- a/library/blivet.py +++ b/library/blivet.py @@ -128,7 +128,7 @@ class BlivetAnsibleError(Exception): pass -class BlivetVolume: +class BlivetVolume(object): def __init__(self, blivet_obj, volume, bpool=None): self._blivet = blivet_obj self._volume = volume