1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins/module_utils
patchback[bot] 77e25a7503
fix invalid fail_json call () ()
* fix invalid fail_json call

Currently causes this error:
```
TypeError: AnsibleModule.fail_json() missing 1 required positional argument: 'msg'
gitlab | FAILED! => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python3.10"
    },
    "changed": false,
    "module_stderr": "Shared connection to 10.0.3.100 closed.\r\n",
    "module_stdout": "Traceback (most recent call last):\r\n  File \"/root/.ansible/tmp/ansible-tmp-1653579059.8318024-147674-84188943153768/AnsiballZ_redis.py\", line 107, in <module>\r\n    _ansiballz_main()\r\n  File \"/root/.ansible/tmp/ansible-tmp-1653579059.8318024-147674-84188943153768/AnsiballZ_redis.py\", line 99, in _ansiballz_main\r\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n  File \"/root/.ansible/tmp/ansible-tmp-1653579059.8318024-147674-84188943153768/AnsiballZ_redis.py\", line 47, in invoke_module\r\n    runpy.run_module(mod_name='ansible_collections.community.general.plugins.modules.redis', init_globals=dict(_module_fqn='ansible_collections.community.general.plugins.modules.redis', _modlib_path=modlib_path),\r\n  File \"/usr/lib/python3.10/runpy.py\", line 209, in run_module\r\n    return _run_module_code(code, init_globals, run_name, mod_spec)\r\n  File \"/usr/lib/python3.10/runpy.py\", line 96, in _run_module_code\r\n    _run_code(code, mod_globals, init_globals,\r\n  File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\r\n    exec(code, run_globals)\r\n  File \"/tmp/ansible_community.general.redis_payload_di15cy0s/ansible_community.general.redis_payload.zip/ansible_collections/community/general/plugins/modules/redis.py\", line 328, in <module>\r\n  File \"/tmp/ansible_community.general.redis_payload_di15cy0s/ansible_community.general.redis_payload.zip/ansible_collections/community/general/plugins/modules/redis.py\", line 195, in main\r\n  File \"/tmp/ansible_community.general.redis_payload_di15cy0s/ansible_community.general.redis_payload.zip/ansible_collections/community/general/plugins/module_utils/redis.py\", line 40, in fail_imports\r\nTypeError: AnsibleModule.fail_json() missing 1 required positional argument: 'msg'\r\n",
    "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
    "rc": 1
}
```

* Add changelog.

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit e55875107b)

Co-authored-by: Brian Coca <bcoca@users.noreply.github.com>
2022-05-30 08:12:53 +02:00
..
identity/keycloak keycloak: add missing validate_certs parameters for open_url calls () 2022-03-28 21:28:42 +02:00
mh ModuleHelper: added a do_raise() method to MH base class () 2022-05-13 20:40:17 +02:00
net_tools/pritunl [pritunl] removed unnecessary data from auth string () 2022-04-20 09:24:29 +02:00
oracle
remote_management/lxca
source_control bitbucket: Support Basic Auth () 2021-10-31 19:09:25 +01:00
storage
_mount.py
alicloud_ecs.py
cloud.py
cmd_runner.py Command Runner () 2022-04-25 22:12:00 +02:00
csv.py
database.py
dimensiondata.py
gandi_livedns_api.py
gitlab.py
heroku.py
hwc_utils.py
ibm_sa_utils.py
ilo_redfish_utils.py
influxdb.py
ipa.py
known_hosts.py
ldap.py
linode.py
lxd.py Adding while loop to wait for cluster container creation () 2022-01-28 07:08:52 +01:00
manageiq.py
memset.py
module_helper.py
oneandone.py
onepassword.py onepassword - Get first found config file () 2022-05-09 07:24:35 +02:00
oneview.py
online.py
opennebula.py
proxmox.py [5.0.0] Bump version to 5.0.0, remove deprecated features () 2022-04-26 11:45:15 +02:00
pure.py
rax.py
redfish_utils.py redfish_command: VirtualMediaInsert does not work with HPE iLO4 () 2022-05-05 07:56:26 +02:00
redhat.py
redis.py fix invalid fail_json call () () 2022-05-30 08:12:53 +02:00
rundeck.py
saslprep.py
scaleway.py Add scaleway_private_network module () 2022-02-14 18:13:55 +01:00
univention_umc.py
utm_utils.py
version.py Unvendor distutils.version () 2022-01-08 21:45:02 +01:00
vexata.py
xenserver.py