From dbd8035881811ab15d5e706cdbec7e450e046370 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Mon, 22 Nov 2021 20:22:52 +0100 Subject: [PATCH] devices/lvm2.lv: initialize fullname member This gets set in `open` and used in `close` but if the former fails the latter will explode if we do not properly initialize it. Also, we should always properly initialize things. --- devices/org.osbuild.lvm2.lv | 1 + 1 file changed, 1 insertion(+) diff --git a/devices/org.osbuild.lvm2.lv b/devices/org.osbuild.lvm2.lv index 5e72d339..bfcaa9e8 100755 --- a/devices/org.osbuild.lvm2.lv +++ b/devices/org.osbuild.lvm2.lv @@ -56,6 +56,7 @@ class LVService(devices.DeviceService): def __init__(self, args): super().__init__(args) + self.fullname = None self.target = None @staticmethod