mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-06 21:33:00 +00:00
Replace % and str.format() with f-strings (#875)
* Replace % and str.format() with f-strings. * Apply suggestions from review.
This commit is contained in:
@@ -242,8 +242,7 @@ def main():
|
||||
data = f.read()
|
||||
except (IOError, OSError) as e:
|
||||
module.fail_json(
|
||||
msg="Error while reading private key file from disk: {0}".format(e),
|
||||
**result,
|
||||
msg=f"Error while reading private key file from disk: {e}", **result
|
||||
)
|
||||
|
||||
result["can_load_key"] = True
|
||||
|
||||
Reference in New Issue
Block a user