mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-06-02 16:39:46 +02:00
fix linting
This commit is contained in:
parent
502a67f9b3
commit
b009ce4acf
|
@ -321,7 +321,7 @@ class StandardLoader():
|
||||||
try:
|
try:
|
||||||
spec.loader.exec_module(module)
|
spec.loader.exec_module(module)
|
||||||
except (ImportError, NameError) as e:
|
except (ImportError, NameError) as e:
|
||||||
sysexit_with_message(f"Failed to load roles file {filename}: \n {str(e)}")
|
sysexit_with_message(f"Failed to load roles file {filename}: \n {e!s}")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
for _name, obj in inspect.getmembers(module):
|
for _name, obj in inspect.getmembers(module):
|
||||||
|
|
|
@ -490,7 +490,7 @@ def extract_from_list(blocks, candidates):
|
||||||
results.extend(add_action_type(block[candidate], candidate, meta_data))
|
results.extend(add_action_type(block[candidate], candidate, meta_data))
|
||||||
elif block[candidate] is not None:
|
elif block[candidate] is not None:
|
||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
f"Key '{candidate}' defined, but bad value: '{str(block[candidate])}'"
|
f"Key '{candidate}' defined, but bad value: '{block[candidate]!s}'"
|
||||||
)
|
)
|
||||||
return results
|
return results
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user