Skip to content

feat: add shared API client and fix modules broken by API changes - #13

Merged
MarijusJanulis merged 4 commits into
mainfrom
feat/foundation-and-fixes
Oct 2, 2026
Merged

MarijusJanulis merged 4 commits into
mainfrom
feat/foundation-and-fixes

Conversation

@MarijusJanulis

Copy link
Copy Markdown
Contributor

Moves every module and the inventory plugin onto one API client (plugins/module_utils/api.py) built on ansible.module_utils.urls, dropping the undeclared requests dependency.

All modules gain api_url and api_timeout, and token falls back to the HOSTINGER_API_TOKEN environment variable.

Fixes for modules broken by API changes since 1.0.1

  • postinstall_list: fix syntax error; return scripts from every page
  • ptr: use /ptr/{ipAddressId} with domain; add ip_address
  • reinstall: send snake_case payload, add password and panel_password, accept 200, fail with an explanation on public_ssh_key_id
  • postinstall_delete: accept 200
  • backup: fail with an explanation on state: delete (endpoint removed)
  • firewall_rule: accept any, ICMPv6, MySQL and PostgreSQL

@MarijusJanulis
MarijusJanulis requested a review from a team as a code owner October 1, 2026 12:58
Comment thread .github/workflows/ci.yml Resolved
@MarijusJanulis
MarijusJanulis merged commit cd2ede9 into main Oct 2, 2026
11 checks passed
@MarijusJanulis
MarijusJanulis deleted the feat/foundation-and-fixes branch October 2, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants