clan_lib: Fix quoting issues
This commit is contained in:
@@ -63,7 +63,7 @@ class Machine:
|
|||||||
def _class_(self) -> str:
|
def _class_(self) -> str:
|
||||||
try:
|
try:
|
||||||
return self.flake.select(
|
return self.flake.select(
|
||||||
f"clanInternals.inventory.machines.{self.name}.machineClass"
|
f'clanInternals.inventory.machines."{self.name}".machineClass'
|
||||||
)
|
)
|
||||||
except ClanCmdError as e:
|
except ClanCmdError as e:
|
||||||
if re.search(f"error: attribute '{self.name}' missing", e.cmd.stderr):
|
if re.search(f"error: attribute '{self.name}' missing", e.cmd.stderr):
|
||||||
@@ -73,7 +73,7 @@ class Machine:
|
|||||||
@property
|
@property
|
||||||
def system(self) -> str:
|
def system(self) -> str:
|
||||||
return self.flake.select(
|
return self.flake.select(
|
||||||
f"{self._class_}Configurations.{self.name}.pkgs.hostPlatform.system"
|
f'{self._class_}Configurations."{self.name}".pkgs.hostPlatform.system'
|
||||||
)
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@@ -185,7 +185,7 @@ class Machine:
|
|||||||
system = config["system"]
|
system = config["system"]
|
||||||
|
|
||||||
return self.flake.select(
|
return self.flake.select(
|
||||||
f'clanInternals.machines."{system}".{self.name}.{attr}',
|
f'clanInternals.machines."{system}"."{self.name}".{attr}',
|
||||||
nix_options=nix_options,
|
nix_options=nix_options,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user