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

fix: remove deprecated force_upgrade argument (#637)

##### SUMMARY

The alias removal was planned for the version 5.0.0, but I forgot to
remove the alias before cutting the 5.0.0 release (the sanity check only
failed after the release pull request was merged).

Since this is the second time I forgot to remove the deprecated alias, I
will cut a patch release, including this breaking change, as soon as
possible, so we still consider this part of the 5.0.0 release.

##### ISSUE TYPE

- Bugfix Pull Request


##### COMPONENT NAME

server
This commit is contained in:
Jonas L. 2025-05-21 17:43:16 +02:00 committed by GitHub
parent ac1b8bdbf7
commit 88f84e7d7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 9 deletions

View file

@ -0,0 +1,2 @@
breaking_changes:
- server - The deprecated ``force_upgrade`` argument is removed from the server module. Please use the ``force`` argument instead.

View file

@ -118,7 +118,6 @@ options:
- May power off the server if update is applied. - May power off the server if update is applied.
type: bool type: bool
default: false default: false
aliases: [force_upgrade]
user_data: user_data:
description: description:
- User Data to be passed to the server on creation. - User Data to be passed to the server on creation.
@ -946,14 +945,7 @@ class AnsibleHCloudServer(AnsibleHCloud):
ipv4={"type": "str"}, ipv4={"type": "str"},
ipv6={"type": "str"}, ipv6={"type": "str"},
private_networks={"type": "list", "elements": "str", "default": None}, private_networks={"type": "list", "elements": "str", "default": None},
force={ force={"type": "bool", "default": False},
"type": "bool",
"default": False,
"aliases": ["force_upgrade"],
"deprecated_aliases": [
{"collection_name": "hetzner.hcloud", "name": "force_upgrade", "version": "5.0.0"}
],
},
rescue_mode={"type": "str"}, rescue_mode={"type": "str"},
delete_protection={"type": "bool"}, delete_protection={"type": "bool"},
rebuild_protection={"type": "bool"}, rebuild_protection={"type": "bool"},