clan_cli: Renamed ClanUrl to FlakeId

This commit is contained in:
Qubasa
2024-03-08 23:47:27 +07:00
parent f4f3176374
commit 372e212c0c
5 changed files with 52 additions and 87 deletions

View File

@@ -111,7 +111,7 @@ class ClanStore:
del self.clan_store[vm.data.flake.flake_url][vm.data.flake.flake_attr]
def get_vm(self, uri: ClanURI) -> None | VMObject:
vm_store = self.clan_store.get(str(uri.url))
vm_store = self.clan_store.get(str(uri.flake_id))
if vm_store is None:
return None
machine = vm_store.get(uri.machine.name, None)