Skip to content

Commit

Permalink
chore: auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 16, 2024
1 parent df68ced commit b37a186
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions plugins/modules/activation.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,20 +184,19 @@
"""


from typing import Any, Dict, List
import traceback
from typing import Any, Dict, List

try:
import yaml
import yaml
except ImportError:
HAS_YAML = False
YAML_IMPORT_ERROR = traceback.format_exc()
else:
HAS_YAML = True
YAML_IMPORT_ERROR = ''
YAML_IMPORT_ERROR = ""

from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.basic import missing_required_lib
from ansible.module_utils.basic import AnsibleModule, missing_required_lib

from ..module_utils.arguments import AUTH_ARGSPEC
from ..module_utils.client import Client
Expand Down Expand Up @@ -470,9 +469,8 @@ def main() -> None:

if not HAS_YAML:
module.fail_json(
msg=missing_required_lib('pyyaml'),
exception=YAML_IMPORT_ERROR)

msg=missing_required_lib("pyyaml"), exception=YAML_IMPORT_ERROR
)

client = Client(
host=module.params.get("controller_host"),
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ kafka-python-ng; python_version >= "3.12"
psycopg[binary,pool] # extras needed to avoid install failure on macos-aarch64
systemd-python; sys_platform != 'darwin'
watchdog>=5.0.0 # types
xxhash
xxhash

0 comments on commit b37a186

Please sign in to comment.