diff --git a/changelogs/fragments/rename-load-balancer-service-http-health-check-dict.yaml b/changelogs/fragments/rename-load-balancer-service-http-health-check-dict.yaml new file mode 100644 index 00000000..ec9ae518 --- /dev/null +++ b/changelogs/fragments/rename-load-balancer-service-http-health-check-dict.yaml @@ -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`. diff --git a/plugins/modules/hcloud_load_balancer_service.py b/plugins/modules/hcloud_load_balancer_service.py index 7324ac9d..610fbec0 100644 --- a/plugins/modules/hcloud_load_balancer_service.py +++ b/plugins/modules/hcloud_load_balancer_service.py @@ -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 ],