fix pylint
This commit is contained in:
@@ -132,8 +132,8 @@ 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"
|
||||||
|
|
||||||
|
|
||||||
def encrypt_file(filename: str) -> str:
|
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
|
# 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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user