fixtures_flake: drop unused substitutions
This commit is contained in:
@@ -19,7 +19,6 @@ class Machine:
|
|||||||
name: str
|
name: str
|
||||||
description: None | str = field(default = None)
|
description: None | str = field(default = None)
|
||||||
icon: None | str = field(default = None)
|
icon: None | str = field(default = None)
|
||||||
system: None | str = field(default = None)
|
|
||||||
tags: list[str] = field(default_factory = list)
|
tags: list[str] = field(default_factory = list)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -109,13 +109,12 @@ def generate_flake(
|
|||||||
inventory = {}
|
inventory = {}
|
||||||
if machine_configs is None:
|
if machine_configs is None:
|
||||||
machine_configs = {}
|
machine_configs = {}
|
||||||
if substitutions is None:
|
substitutions = {
|
||||||
substitutions = {
|
"__CHANGE_ME__": "_test_vm_persistence",
|
||||||
"__CHANGE_ME__": "_test_vm_persistence",
|
"git+https://git.clan.lol/clan/clan-core": "path://" + str(CLAN_CORE),
|
||||||
"git+https://git.clan.lol/clan/clan-core": "path://" + str(CLAN_CORE),
|
"https://git.clan.lol/clan/clan-core/archive/main.tar.gz": "path://"
|
||||||
"https://git.clan.lol/clan/clan-core/archive/main.tar.gz": "path://"
|
+ str(CLAN_CORE),
|
||||||
+ str(CLAN_CORE),
|
}
|
||||||
}
|
|
||||||
flake = temporary_home / "flake"
|
flake = temporary_home / "flake"
|
||||||
shutil.copytree(flake_template, flake)
|
shutil.copytree(flake_template, flake)
|
||||||
sp.run(["chmod", "+w", "-R", str(flake)], check=True)
|
sp.run(["chmod", "+w", "-R", str(flake)], check=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user