diff --git a/plugins/module_utils/form.py b/plugins/module_utils/form.py index 73cf3d1..027f9c0 100644 --- a/plugins/module_utils/form.py +++ b/plugins/module_utils/form.py @@ -36,5 +36,5 @@ def get_mulipart(data): content += f'Content-Disposition: form-data; name="{k}"{rn}{rn}' content += str(v) content += rn - content += f"--{ boundary }--" + content += f"--{boundary}--" return boundary, content.encode("utf-8") diff --git a/plugins/modules/dns_record.py b/plugins/modules/dns_record.py index f443fb2..c3f36df 100644 --- a/plugins/modules/dns_record.py +++ b/plugins/modules/dns_record.py @@ -107,7 +107,7 @@ def get_match_or_fail(items, key, value, attribute_name): available_items = ", ".join(x[key] for x in items) raise errors.MaasError( - f"Can not find matching { attribute_name }. Options are [{ available_items }]" + f"Can not find matching {attribute_name}. Options are [{available_items}]" ) diff --git a/plugins/modules/subnet.py b/plugins/modules/subnet.py index 47ee163..3aba4d8 100644 --- a/plugins/modules/subnet.py +++ b/plugins/modules/subnet.py @@ -147,7 +147,7 @@ def get_match_or_fail(items, key, value, attribute_name): available_items = ", ".join(x[key] for x in items) raise errors.MaasError( - f"Can not find matching { attribute_name }. Options are [{ available_items }]" + f"Can not find matching {attribute_name}. Options are [{available_items}]" ) diff --git a/plugins/modules/subnet_ip_range.py b/plugins/modules/subnet_ip_range.py index 3a7fbf4..12ae723 100644 --- a/plugins/modules/subnet_ip_range.py +++ b/plugins/modules/subnet_ip_range.py @@ -128,7 +128,7 @@ def ensure_present(module, client: Client): if not subnet: available_subnets = ", ".join(x["name"] for x in subnets) raise errors.MaasError( - f"Can not find matching subnet. Options are [{ available_subnets }]" + f"Can not find matching subnet. Options are [{available_subnets}]" ) compound_key = { diff --git a/pyproject.toml b/pyproject.toml index 8606874..3de9d65 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,4 +10,4 @@ profile = "black" [tool.flake8] exclude = ["tests/output/"] -ignore = ["E201", "E202", "E203", "E266", "E402", "E501", "W503", "W504"] +ignore = ["E203", "E266", "E402", "E501", "W503", "W504"]