mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-07 13:53:06 +00:00
Improve type hints. (#913)
This commit is contained in:
@@ -313,6 +313,8 @@ class OpenSSLCLIBackend(CryptoBackend):
|
||||
f"-{key_data['hash']}",
|
||||
] + cmd_postfix
|
||||
|
||||
out: bytes | str
|
||||
|
||||
rc, out, err = self.module.run_command(
|
||||
openssl_sign_cmd,
|
||||
data=sign_payload,
|
||||
@@ -326,7 +328,7 @@ class OpenSSLCLIBackend(CryptoBackend):
|
||||
)
|
||||
|
||||
if key_data["type"] == "ec":
|
||||
dummy, der_out, dummy = self.module.run_command(
|
||||
dummy, der_out, dummy2 = self.module.run_command(
|
||||
[self.openssl_binary, "asn1parse", "-inform", "DER"],
|
||||
data=out,
|
||||
binary_data=True,
|
||||
|
||||
Reference in New Issue
Block a user