mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-08 22:33:53 +00:00
Work on issues found by pylint (#896)
* Look at possibly-used-before-assignment. * Use latest beta releases of ansible-core 2.19 for mypy and pylint. * Look at unsupported-*. * Look at unknown-option-value. * Look at redefined-builtin. * Look at superfluous-parens. * Look at unspecified-encoding. * Adjust to new cryptography version and to ansible-core 2.17's pylint. * Look at super-with-arguments. * Look at no-else-*. * Look at try-except-raise. * Look at inconsistent-return-statements. * Look at redefined-outer-name. * Look at redefined-argument-from-local. * Look at attribute-defined-outside-init. * Look at unused-variable. * Look at protected-access. * Look at raise-missing-from. * Look at arguments-differ. * Look at useless-suppression and use-symbolic-message-instead. * Look at consider-using-dict-items. * Look at consider-using-in. * Look at consider-using-set-comprehension. * Look at consider-using-with. * Look at use-dict-literal.
This commit is contained in:
@@ -252,9 +252,9 @@ if t.TYPE_CHECKING:
|
||||
def main() -> t.NoReturn:
|
||||
argument_spec = create_default_argspec(with_certificate=False)
|
||||
argument_spec.update_argspec(
|
||||
order_uri=dict(type="str", required=True),
|
||||
challenge=dict(type="str", choices=["http-01", "dns-01", "tls-alpn-01"]),
|
||||
deactivate_authzs=dict(type="bool", default=True),
|
||||
order_uri={"type": "str", "required": True},
|
||||
challenge={"type": "str", "choices": ["http-01", "dns-01", "tls-alpn-01"]},
|
||||
deactivate_authzs={"type": "bool", "default": True},
|
||||
)
|
||||
module = argument_spec.create_ansible_module()
|
||||
|
||||
@@ -330,13 +330,13 @@ def main() -> t.NoReturn:
|
||||
changed=len(authzs_with_challenges_to_wait_for) > 0,
|
||||
account_uri=client.client.account_uri,
|
||||
validating_challenges=[
|
||||
dict(
|
||||
identifier=authz.identifier,
|
||||
identifier_type=authz.identifier_type,
|
||||
authz_url=authz.url,
|
||||
challenge_type=challenge_type,
|
||||
challenge_url=challenge.url if challenge else None,
|
||||
)
|
||||
{
|
||||
"identifier": authz.identifier,
|
||||
"identifier_type": authz.identifier_type,
|
||||
"authz_url": authz.url,
|
||||
"challenge_type": challenge_type,
|
||||
"challenge_url": challenge.url if challenge else None,
|
||||
}
|
||||
for authz, challenge_type, challenge in authzs_with_challenges_to_wait_for
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user