fix pylint

This commit is contained in:
2023-12-06 13:02:42 +01:00
parent 73cd7856b9
commit c9586e31a8

View File

@@ -132,8 +132,8 @@ def decrypt_file(filename: str) -> str:
["ansible-vault", "decrypt", filename], check=True, capture_output=True
)
return f"Decrypted '{filename}' successfully"
else:
return f"File '{filename}' was not changed"
return f"File '{filename}' was not changed"
def encrypt_file(filename: str) -> str:
@@ -176,8 +176,8 @@ def decrypt_string(host, var) -> str:
# Attempt to create a :-separated list of host/values
output = {}
for host, values in ansible_output.items():
output[host] = convert_ansible_errors(values["msg"])
for hostname, values in ansible_output.items():
output[hostname] = convert_ansible_errors(values["msg"])
return format_data(output)