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] 992e14e424
fix invalid fail_json call (#4733) (#4749)
* 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:13:47 +02:00
..
identity/keycloak keycloak: add missing validate_certs parameters for open_url calls (#4382) (#4410) 2022-03-28 22:25:14 +02:00
mh MH decorators - added decorators for check_mode (#3849) (#3860) 2021-12-05 22:14:08 +01:00
net_tools/pritunl [pritunl] removed unnecessary data from auth string (#4530) (#4538) 2022-04-20 09:33:57 +02:00
oracle mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
remote_management/lxca mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
source_control bitbucket: Support Basic Auth (#2045) 2021-10-31 19:09:25 +01:00
storage mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
_mount.py mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
_version.py Add PSF-license.txt file. (#4675) 2022-05-16 07:35:47 +02:00
alicloud_ecs.py mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
cloud.py mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
cmd_runner.py Command Runner (#4476) (#4572) 2022-04-25 22:26:36 +02:00
csv.py Replace ansible.module_utils._text by ansible.module_utils.common.text.converters (#2877) 2021-06-26 23:59:11 +02:00
database.py mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
dimensiondata.py sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00
gandi_livedns_api.py Replace ansible.module_utils._text by ansible.module_utils.common.text.converters (#2877) 2021-06-26 23:59:11 +02:00
gitlab.py Prepare for distutils.version being removed in Python 3.12 (#3936) (#3941) 2021-12-24 19:15:47 +01:00
heroku.py mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
hwc_utils.py mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
ibm_sa_utils.py mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
ilo_redfish_utils.py Modules for managing HPE iLO (#3740) (#3892) 2021-12-11 21:56:10 +01:00
influxdb.py Prepare for distutils.version being removed in Python 3.12 (#3936) (#3941) 2021-12-24 19:15:47 +01:00
ipa.py ipa_group: add append option (#3545) 2021-10-19 13:36:08 +02:00
known_hosts.py mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
ldap.py Replace ansible.module_utils._text by ansible.module_utils.common.text.converters (#2877) 2021-06-26 23:59:11 +02:00
linode.py mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
lxd.py Adding while loop to wait for cluster container creation (#4039) (#4095) 2022-01-28 07:38:10 +01:00
manageiq.py mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
memset.py mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
module_helper.py module_helper.py Breakdown (#2393) 2021-05-11 19:31:10 +02:00
oneandone.py mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
onepassword.py onepassword - Get first found config file (#4640) (#4653) 2022-05-09 12:31:05 +02:00
oneview.py mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
online.py Fix new devel sanity errors. (#3194) 2021-08-12 12:07:50 +02:00
opennebula.py mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
proxmox.py Refactor all Proxmox modules to use shared module_utils. (#4029) (#4164) 2022-02-07 17:48:11 +01:00
pure.py sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00
rax.py mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
redfish_utils.py Redfish: Added IndicatorLED commands to the Systems category (#4458) (#4494) 2022-04-11 20:22:58 +02:00
redhat.py mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
redis.py fix invalid fail_json call (#4733) (#4749) 2022-05-30 08:13:47 +02:00
rundeck.py Add new modules rundeck_job_run and rundeck_job_executions_info (#3521) 2021-10-11 06:55:47 +02:00
saslprep.py sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00
scaleway.py Add scaleway_private_network module (#4042) (#4197) 2022-02-14 18:27:07 +01:00
univention_umc.py mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
utm_utils.py mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
version.py Fix comment. (#3993) (#3995) 2022-01-06 15:10:49 +01:00
vexata.py Replace ansible.module_utils._text by ansible.module_utils.common.text.converters (#2877) 2021-06-26 23:59:11 +02:00
xenserver.py xenserver_guest - fixed validations (#2243) 2021-04-17 09:32:13 +02:00