Fix various typos
This commit is contained in:
@@ -272,7 +272,7 @@ API.register(open_file)
|
||||
|
||||
# seems direct 'key in dict' doesnt work here
|
||||
if arg_name not in sig.parameters.keys(): # noqa: SIM118
|
||||
msg = f"Argument {arg_name} not found in api method '{method_name}'. Avilable arguments: {list(sig.parameters.keys())}"
|
||||
msg = f"Argument {arg_name} not found in api method '{method_name}'. Available arguments: {list(sig.parameters.keys())}"
|
||||
raise ClanError(msg)
|
||||
|
||||
param = sig.parameters.get(arg_name)
|
||||
|
||||
@@ -132,7 +132,7 @@ def create_machine(opts: CreateOptions) -> None:
|
||||
inventory["machines"] = inventory.get("machines", {})
|
||||
inventory["machines"][machine_name] = new_machine
|
||||
|
||||
# Commit at the end in that order to avoid commiting halve-baked machines
|
||||
# Commit at the end in that order to avoid committing halve-baked machines
|
||||
# TODO: automatic rollbacks if something goes wrong
|
||||
set_inventory(inventory, clan_dir, "Imported machine from template")
|
||||
|
||||
|
||||
@@ -406,7 +406,7 @@ def _check_can_migrate(
|
||||
msg = f"Cannot migrate facts for generator {generator.name} as some files already exist in the store"
|
||||
raise ClanError(msg)
|
||||
if all_files_present:
|
||||
# all filles already migrated, no need to run migration again
|
||||
# all files already migrated, no need to run migration again
|
||||
return False
|
||||
|
||||
# ensure that all files can be migrated (exists in the corresponding fact store)
|
||||
|
||||
Reference in New Issue
Block a user