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:
parent
9419256546
commit
fc021a5afb
1 changed files with 9 additions and 7 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue