Skip to content

fix: only send load balancer service health_check properties when defined - #691

Merged
jooola merged 1 commit into
mainfrom
fix-load-balancer-service-health_check-payload
Sep 17, 2026
Merged

jooola merged 1 commit into
mainfrom
fix-load-balancer-service-health_check-payload

Conversation

@jooola

@jooola jooola commented Sep 17, 2026

Copy link
Copy Markdown
Member

The code was sending all the health_check properties unconditionally, which prevented from falling back on API defaults or to partially update the health_check values.

…ined

The code was sending all the health_check properties unconditionally, which prevented from falling back on API defaults or to partially update the health_check values.
@codecov

codecov Bot commented Sep 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.12%. Comparing base (f7b8a31) to head (41d79ba).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #691   +/-   ##
=======================================
  Coverage   97.12%   97.12%           
=======================================
  Files          76       76           
  Lines        4099     4099           
=======================================
  Hits         3981     3981           
  Misses        118      118           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jooola
jooola merged commit e3bf6f2 into main Sep 17, 2026
11 checks passed
@jooola
jooola deleted the fix-load-balancer-service-health_check-payload branch September 17, 2026 07:43
jooola pushed a commit that referenced this pull request Sep 17, 2026
<!-- section-start changelog -->
### Bug Fixes

- only send load balancer service health_check properties when defined
(#691)
([e3bf6f2](e3bf6f2))

<!-- section-end changelog -->

---

<details>
<summary><h4>PR by <a
href="https://github.com/apricote/releaser-pleaser">releaser-pleaser</a>
🤖</h4></summary>

If you want to modify the proposed release, add you overrides here. You
can learn more about the options in the docs.

## Release Notes

### Prefix / Start

This will be added to the start of the release notes.

~~~~rp-prefix
~~~~

### Suffix / End

This will be added to the end of the release notes.

~~~~rp-suffix
~~~~

</details>

Co-authored-by: Hetzner Cloud Bot <>
jooola added a commit to ansible-collections/hetzner.hcloud that referenced this pull request Sep 17, 2026
…lth_check argument (#873)

##### SUMMARY

The issue was fixed in hcloud-python
hetznercloud/hcloud-python#691, but we want to
have a regression test for
#158 and a
changelog for the users.

We also marked the load balancer service `health_check.port` and
`health_check.protocol` arguments are required to reflect the API
requirements.

Closes #158


##### COMPONENT NAME

load_balancer_service
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.

1 participant