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.
This commit is contained in:
parent
99c739fd60
commit
b8fb1ec1e9
1 changed files with 6 additions and 0 deletions
|
|
@ -61,6 +61,12 @@ SCHEMA_2 = """
|
||||||
|
|
||||||
class OSTreeDeploymentMount(mounts.MountService):
|
class OSTreeDeploymentMount(mounts.MountService):
|
||||||
|
|
||||||
|
def __init__(self, args):
|
||||||
|
super().__init__(args)
|
||||||
|
|
||||||
|
self.mountpoint = None
|
||||||
|
self.check = False
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def bind_mount(source, target):
|
def bind_mount(source, target):
|
||||||
subprocess.run([
|
subprocess.run([
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue