mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-08 22:33:53 +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:
@@ -182,9 +182,7 @@ def main():
|
||||
private_key, private_key_content, passphrase=passphrase
|
||||
)
|
||||
except KeyParsingError as e:
|
||||
raise ModuleFailException(
|
||||
"Error while parsing private key: {msg}".format(msg=e.msg)
|
||||
)
|
||||
raise ModuleFailException(f"Error while parsing private key: {e.msg}")
|
||||
# Step 2: sign revokation request with private key
|
||||
jws_header = {
|
||||
"alg": private_key_data["alg"],
|
||||
|
||||
Reference in New Issue
Block a user