1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-12 23:15:06 +00:00

Reformat everything.

This commit is contained in:
Felix Fontein 2025-11-01 12:08:41 +01:00
parent 3f2213791a
commit 340ff8586d
1008 changed files with 61301 additions and 58309 deletions

View file

@ -129,9 +129,7 @@ class ConsulBindingRuleModule(_ConsulModule):
try:
results = self.get(url)
for result in results:
if result.get("Description").startswith(
f"{self.params['name']}: "
):
if result.get("Description").startswith(f"{self.params['name']}: "):
return result
except RequestError as e:
if e.status == 404:
@ -158,9 +156,7 @@ _ARGUMENT_SPEC = {
"description": dict(type="str"),
"auth_method": dict(type="str", required=True),
"selector": dict(type="str"),
"bind_type": dict(
type="str", choices=["service", "node", "role", "templated-policy"]
),
"bind_type": dict(type="str", choices=["service", "node", "role", "templated-policy"]),
"bind_name": dict(type="str"),
"bind_vars": dict(type="dict"),
"state": dict(default="present", choices=["present", "absent"]),