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
Martin 70ba401602
[icinga2_host.py] Actually return codes instead of data (#335)
* [icinga2_host.py] Actually return codes instead of data

Currently the module tries to return the `data`, which can result in a blank message instead of the code being shown.

```
 "msg": "bad return code creating host: "
```

* add changelog fragment

* Update changelogs/fragments/335-icinga2_host-return-error-code.yaml

Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>

* return code and data on fail

Co-authored-by: Felix Fontein <felix@fontein.de>

Co-authored-by: John R Barker <john@johnrbarker.com>
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
Co-authored-by: Deric Crago <deric.crago@gmail.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2020-12-02 09:38:56 +03:00
..
action Bump version to 2.0.0 (#1369) 2020-11-26 14:26:36 +01:00
become
cache Bump version to 2.0.0 (#1369) 2020-11-26 14:26:36 +01:00
callback
connection Remove and redirect oc module. (#866) 2020-12-01 22:20:02 +01:00
doc_fragments Tidy up validate-modules:doc-required-mismatch (#1415) 2020-11-28 14:06:28 +01:00
filter Add filter dict_kv (#1264) 2020-11-24 05:41:18 +01:00
inventory
lookup Added umask option to passwordstore lookup plugin. (#1156) 2020-11-24 08:05:59 +01:00
module_utils proxmox: create a common base (#1331) 2020-11-24 17:30:39 +01:00
modules [icinga2_host.py] Actually return codes instead of data (#335) 2020-12-02 09:38:56 +03:00