1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00

fix missing rollback_snapshot entrypoint

This commit is contained in:
jo 2025-12-08 15:17:41 +01:00
parent 9419256546
commit fc021a5afb
No known key found for this signature in database
GPG key ID: B2FEC9B22722B984

View file

@ -589,13 +589,15 @@ def main():
module = AnsibleStorageBox.define_module()
o = AnsibleStorageBox(module)
state = module.params.get("state")
if state == "absent":
o.absent()
elif state == "reset_password":
o.reset_password()
else:
o.present()
match module.params.get("state"):
case "reset_password":
o.reset_password()
case "rollback_snapshot":
o.rollback_snapshot()
case "absent":
o.absent()
case _:
o.present()
result = o.get_result()