ruff: apply automatic unsafe fixes
This commit is contained in:
@@ -30,7 +30,7 @@ def list_service_instances(flake: Flake) -> InventoryInstancesType:
|
||||
|
||||
def collect_tags(machines: InventoryMachinesType) -> set[str]:
|
||||
res = set()
|
||||
for _, machine in machines.items():
|
||||
for machine in machines.values():
|
||||
res |= set(machine.get("tags", []))
|
||||
|
||||
return res
|
||||
|
||||
@@ -267,7 +267,7 @@ def create_service_instance(
|
||||
|
||||
# TODO: Check the roles against the schema
|
||||
schema = get_service_module_schema(flake, module_ref)
|
||||
for role_name, _role in roles.items():
|
||||
for role_name in roles:
|
||||
if role_name not in schema:
|
||||
msg = f"Role '{role_name}' is not defined in the module schema"
|
||||
raise ClanError(msg)
|
||||
|
||||
Reference in New Issue
Block a user