From b8fb1ec1e9eed336275bc2c4503385ab5c27d637 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Thu, 2 Dec 2021 20:15:50 +0000 Subject: [PATCH] mounts/ostree.deployment: initialize fields Initialize `mountpoint` and `check` fields. In case of an error in `open` not having `mountpoint` or `check` initialized will cause another exception. So this is mostly important in case of error, but it is the right thing anyway. --- mounts/org.osbuild.ostree.deployment | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mounts/org.osbuild.ostree.deployment b/mounts/org.osbuild.ostree.deployment index 96d602b0..9a21f677 100755 --- a/mounts/org.osbuild.ostree.deployment +++ b/mounts/org.osbuild.ostree.deployment @@ -61,6 +61,12 @@ SCHEMA_2 = """ class OSTreeDeploymentMount(mounts.MountService): + def __init__(self, args): + super().__init__(args) + + self.mountpoint = None + self.check = False + @staticmethod def bind_mount(source, target): subprocess.run([