Loading poolpay/vault/Vault.py +7 −4 Original line number Diff line number Diff line Loading @@ -4,7 +4,6 @@ from os import getgid, getuid from pathlib import Path from subprocess import CalledProcessError, run from typing import Any, Self from uuid import uuid4 @dataclass(frozen=True) Loading @@ -12,9 +11,13 @@ class Vault(AbstractContextManager): image: Path mountpoint: Path # The name is not part of the interface, but we need to remember it during command execution, because it will be # identified by the operating system using this name _name: str = f"poolpay-vault-{uuid4()}" @property def _name(self) -> str: """ Return the name the operating system shall use to identify this vault. """ distinguisher = str(self.image.resolve()).replace("/", "-") return f"poolpay-vault-{distinguisher}" @property def _mapper(self) -> Path: Loading Loading
poolpay/vault/Vault.py +7 −4 Original line number Diff line number Diff line Loading @@ -4,7 +4,6 @@ from os import getgid, getuid from pathlib import Path from subprocess import CalledProcessError, run from typing import Any, Self from uuid import uuid4 @dataclass(frozen=True) Loading @@ -12,9 +11,13 @@ class Vault(AbstractContextManager): image: Path mountpoint: Path # The name is not part of the interface, but we need to remember it during command execution, because it will be # identified by the operating system using this name _name: str = f"poolpay-vault-{uuid4()}" @property def _name(self) -> str: """ Return the name the operating system shall use to identify this vault. """ distinguisher = str(self.image.resolve()).replace("/", "-") return f"poolpay-vault-{distinguisher}" @property def _mapper(self) -> Path: Loading