fix pylint

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

View File

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