mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-07 22:03:01 +00:00
Deprecate no longer used options. (#891)
This commit is contained in:
3
changelogs/fragments/891-deprecation.yml
Normal file
3
changelogs/fragments/891-deprecation.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
deprecated_features:
|
||||||
|
- "acme_certificate - deprecate the ``agreement`` option which has no more effect. It will be removed from community.crypto 4.0.0 (https://github.com/ansible-collections/community.crypto/pull/891)."
|
||||||
|
- "openssl_pkcs12 - deprecate the ``maciter_size`` option which has no more effect. It will be removed from community.crypto 4.0.0 (https://github.com/ansible-collections/community.crypto/pull/891)."
|
||||||
@@ -97,8 +97,7 @@ options:
|
|||||||
description:
|
description:
|
||||||
- URI to a terms of service document you agree to when using the ACME v1 service at O(acme_directory).
|
- URI to a terms of service document you agree to when using the ACME v1 service at O(acme_directory).
|
||||||
- Default is latest gathered from O(acme_directory) URL.
|
- Default is latest gathered from O(acme_directory) URL.
|
||||||
- This option has no longer any effect.
|
- This option has no longer any effect. It is deprecated and will be removed from community.crypto 4.0.0.
|
||||||
# TODO: deprecate!
|
|
||||||
type: str
|
type: str
|
||||||
terms_agreed:
|
terms_agreed:
|
||||||
description:
|
description:
|
||||||
@@ -954,7 +953,11 @@ def main() -> t.NoReturn:
|
|||||||
argument_spec.update_argspec(
|
argument_spec.update_argspec(
|
||||||
modify_account=dict(type="bool", default=True),
|
modify_account=dict(type="bool", default=True),
|
||||||
account_email=dict(type="str"),
|
account_email=dict(type="str"),
|
||||||
agreement=dict(type="str"),
|
agreement=dict(
|
||||||
|
type="str",
|
||||||
|
removed_in_version="4.0.0",
|
||||||
|
removed_from_collection="community.crypto",
|
||||||
|
),
|
||||||
terms_agreed=dict(type="bool", default=False),
|
terms_agreed=dict(type="bool", default=False),
|
||||||
challenge=dict(
|
challenge=dict(
|
||||||
type="str",
|
type="str",
|
||||||
|
|||||||
@@ -94,9 +94,8 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Number of times to repeat the MAC step.
|
- Number of times to repeat the MAC step.
|
||||||
- This is B(not considered during idempotency checks).
|
- This is B(not considered during idempotency checks).
|
||||||
- This value is B(not used).
|
- This value is B(not used). It is deprecated and will be removed from community.crypto 4.0.0.
|
||||||
type: int
|
type: int
|
||||||
# TODO: deprecate!
|
|
||||||
encryption_level:
|
encryption_level:
|
||||||
description:
|
description:
|
||||||
- Determines the encryption level used.
|
- Determines the encryption level used.
|
||||||
@@ -390,7 +389,6 @@ class Pkcs(OpenSSLObject):
|
|||||||
certificate_content: str | None = module.params["certificate_content"]
|
certificate_content: str | None = module.params["certificate_content"]
|
||||||
self.friendly_name: str | None = module.params["friendly_name"]
|
self.friendly_name: str | None = module.params["friendly_name"]
|
||||||
self.iter_size: int = module.params["iter_size"] or iter_size_default
|
self.iter_size: int = module.params["iter_size"] or iter_size_default
|
||||||
self.maciter_size: int = module.params["maciter_size"] or 1
|
|
||||||
self.encryption_level: t.Literal["auto", "compatibility2022"] = module.params[
|
self.encryption_level: t.Literal["auto", "compatibility2022"] = module.params[
|
||||||
"encryption_level"
|
"encryption_level"
|
||||||
]
|
]
|
||||||
@@ -776,7 +774,11 @@ def main() -> t.NoReturn:
|
|||||||
type="str", choices=["auto", "compatibility2022"], default="auto"
|
type="str", choices=["auto", "compatibility2022"], default="auto"
|
||||||
),
|
),
|
||||||
iter_size=dict(type="int"),
|
iter_size=dict(type="int"),
|
||||||
maciter_size=dict(type="int"),
|
maciter_size=dict(
|
||||||
|
type="int",
|
||||||
|
removed_in_version="4.0.0",
|
||||||
|
removed_from_collection="community.crypto",
|
||||||
|
),
|
||||||
passphrase=dict(type="str", no_log=True),
|
passphrase=dict(type="str", no_log=True),
|
||||||
path=dict(type="path", required=True),
|
path=dict(type="path", required=True),
|
||||||
privatekey_passphrase=dict(type="str", no_log=True),
|
privatekey_passphrase=dict(type="str", no_log=True),
|
||||||
|
|||||||
Reference in New Issue
Block a user