You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(plugins): unify uptimerobot family and add unit tests (#268)
Bring the uptimerobot module_util and all nine uptimerobot_* modules to
the standard plugin style: standard file header (also unifies the
module_util copyright line) and f-strings throughout, replacing every
str.format() call. No behavior change from the formatting.
Safe fixes:
- module_util: the four get_* functions now pass a non-list API response
(the stat-ok message fallback) straight through instead of iterating
it and crashing
- module_util: drop the no-op ternary and the now-unused
is_paginated_field bookkeeping in _request_uncached
Add unit tests for the pure helpers: the module_util wire builders,
secret redaction, cache-key hashing, friendly-name resolution and the
read-direction response translators; the monitor alert_contacts/mwindows
normalizers; and the mwindow time helpers (incl. the midnight wrap).
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
42
42
43
43
### Fixed
44
44
45
+
***plugin:uptimerobot_\***: The modules no longer crash when the UptimeRobot API returns a non-list response for a list endpoint; the response is passed through instead.
45
46
***plugin:nextcloud_occ_app_config, plugin:nextcloud_occ_system_config, plugin:uptimerobot_monitor, plugin:uptimerobot_psp**: Fixed their documentation so `ansible-doc` renders them again. A unit-test guard now catches this class of error for every in-house plugin.
46
47
***plugin:bitwarden_item**: Fixed the lookup's documentation so `ansible-doc` renders it again.
47
48
***plugin:combine_lod**: The `combine_lod` filter now reports an error when an item is missing part of a composite `unique_key` (a list of keys), instead of silently grouping such items together. Inventories with incomplete composite keys that previously merged by accident now fail loudly and must be corrected. Also fixed its documentation so `ansible-doc` renders it again.
0 commit comments