From 4fa73e4b9290136ab204fc61a106d03409ad6dd7 Mon Sep 17 00:00:00 2001 From: Qubasa Date: Thu, 5 Jun 2025 17:24:36 +0200 Subject: [PATCH] clan_lib: Fix quoting issues --- pkgs/clan-cli/clan_lib/machines/machines.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/clan-cli/clan_lib/machines/machines.py b/pkgs/clan-cli/clan_lib/machines/machines.py index a36da46bf..f90030610 100644 --- a/pkgs/clan-cli/clan_lib/machines/machines.py +++ b/pkgs/clan-cli/clan_lib/machines/machines.py @@ -63,7 +63,7 @@ class Machine: def _class_(self) -> str: try: return self.flake.select( - f"clanInternals.inventory.machines.{self.name}.machineClass" + f'clanInternals.inventory.machines."{self.name}".machineClass' ) except ClanCmdError as e: if re.search(f"error: attribute '{self.name}' missing", e.cmd.stderr): @@ -73,7 +73,7 @@ class Machine: @property def system(self) -> str: return self.flake.select( - f"{self._class_}Configurations.{self.name}.pkgs.hostPlatform.system" + f'{self._class_}Configurations."{self.name}".pkgs.hostPlatform.system' ) @property @@ -185,7 +185,7 @@ class Machine: system = config["system"] return self.flake.select( - f'clanInternals.machines."{system}".{self.name}.{attr}', + f'clanInternals.machines."{system}"."{self.name}".{attr}', nix_options=nix_options, )