mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-08 06:13:03 +00:00
Add better argspec typing. (#1011)
This commit is contained in:
@@ -128,7 +128,7 @@ class AcmeCertificateProvider(CertificateProvider):
|
||||
|
||||
|
||||
def add_acme_provider_to_argument_spec(argument_spec: ArgumentSpec) -> None:
|
||||
argument_spec.argument_spec["provider"]["choices"].append("acme")
|
||||
argument_spec.argument_spec["provider"]["choices"].append("acme") # type: ignore
|
||||
argument_spec.argument_spec.update(
|
||||
{
|
||||
"acme_accountkey_path": {"type": "path"},
|
||||
|
||||
@@ -340,7 +340,7 @@ class OwnCACertificateProvider(CertificateProvider):
|
||||
|
||||
|
||||
def add_ownca_provider_to_argument_spec(argument_spec: ArgumentSpec) -> None:
|
||||
argument_spec.argument_spec["provider"]["choices"].append("ownca")
|
||||
argument_spec.argument_spec["provider"]["choices"].append("ownca") # type: ignore
|
||||
argument_spec.argument_spec.update(
|
||||
{
|
||||
"ownca_path": {"type": "path"},
|
||||
|
||||
@@ -243,7 +243,7 @@ class SelfSignedCertificateProvider(CertificateProvider):
|
||||
|
||||
|
||||
def add_selfsigned_provider_to_argument_spec(argument_spec: ArgumentSpec) -> None:
|
||||
argument_spec.argument_spec["provider"]["choices"].append("selfsigned")
|
||||
argument_spec.argument_spec["provider"]["choices"].append("selfsigned") # type: ignore
|
||||
argument_spec.argument_spec.update(
|
||||
{
|
||||
"selfsigned_version": {
|
||||
|
||||
Reference in New Issue
Block a user