Merge pull request 'clan_cli: Rewrite ClanURI' (#915) from Qubasa-main into main

This commit is contained in:
clan-bot
2024-03-07 12:12:28 +00:00

View File

@@ -113,9 +113,9 @@ class VMObject(GObject.Object):
@contextmanager
def _create_machine(self) -> Generator[Machine, None, None]:
uri = ClanURI.from_str(
url=self.data.flake.flake_url, flake_attr=self.data.flake.flake_attr
url=self.data.flake.flake_url, machine_name=self.data.flake.flake_attr
)
match uri.scheme:
match uri.url:
case ClanUrl.LOCAL.value(path):
self.machine = Machine(
name=self.data.flake.flake_attr,