1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-03 23:51:48 +00:00

refactor: fix primary ip module need_reload default value (#772)

##### SUMMARY

Related to #771
This commit is contained in:
Jonas L. 2025-12-16 16:59:28 +01:00 committed by GitHub
parent b4616f3af8
commit 10c0e14d9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -234,7 +234,7 @@ class AnsiblePrimaryIP(AnsibleHCloud):
self.primary_ip.reload()
def _update(self):
need_reload = True
need_reload = False
if (value := self.module.params.get("delete_protection")) is not None:
if value != self.primary_ip.protection["delete"]: