Skip to content

Commit

Permalink
fix: invalid field in load_balancer_service health_check.http return …
Browse files Browse the repository at this point in the history
…data (#333)

##### SUMMARY

In the `hcloud_load_balancer_service` return data, the
`health_check.http.certificates` field must be named
`health_check.http.status_codes`.

https://docs.hetzner.cloud/#load-balancers-get-a-load-balancer

Fixes #332 

##### ISSUE TYPE

- Bugfix Pull Request


##### COMPONENT NAME

hcloud_load_balancer_service
  • Loading branch information
jooola authored Sep 25, 2023
1 parent 73f0e3c commit fb35516
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
bugfixes:
- >
hcloud_load_balancer_service - In the returned data, the invalid
`health_check.http.certificates` field was renamed to `health_check.http.status_codes`.
2 changes: 1 addition & 1 deletion plugins/modules/hcloud_load_balancer_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def _prepare_result(self):
"domain": to_native(self.hcloud_load_balancer_service.health_check.http.domain),
"path": to_native(self.hcloud_load_balancer_service.health_check.http.path),
"response": to_native(self.hcloud_load_balancer_service.health_check.http.response),
"certificates": [
"status_codes": [
to_native(status_code)
for status_code in self.hcloud_load_balancer_service.health_check.http.status_codes
],
Expand Down

0 comments on commit fb35516

Please sign in to comment.