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

The alias removal was planned for the version 5.0.0, but I
forgot to remove the alias before release the v5 (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.
This commit is contained in:
jo 2025-05-21 17:20:23 +02:00
parent ac1b8bdbf7
commit b792f0106e
No known key found for this signature in database
GPG key ID: B2FEC9B22722B984
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.
type: bool
default: false
aliases: [force_upgrade]
user_data:
description:
- User Data to be passed to the server on creation.
@ -946,14 +945,7 @@ class AnsibleHCloudServer(AnsibleHCloud):
ipv4={"type": "str"},
ipv6={"type": "str"},
private_networks={"type": "list", "elements": "str", "default": None},
force={
"type": "bool",
"default": False,
"aliases": ["force_upgrade"],
"deprecated_aliases": [
{"collection_name": "hetzner.hcloud", "name": "force_upgrade", "version": "5.0.0"}
],
},
force={"type": "bool", "default": False},
rescue_mode={"type": "str"},
delete_protection={"type": "bool"},
rebuild_protection={"type": "bool"},