fix: invalid field in load_balancer_service health_check.http return 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
This commit is contained in:
Jonas L 2023-09-25 12:20:18 +02:00 committed by GitHub
parent 73f0e3c708
commit fb35516e76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -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`.

View file

@ -322,7 +322,7 @@ class AnsibleHCloudLoadBalancerService(AnsibleHCloud):
"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
],