From 49e21ae4febe18c62e44c9abf365fa2feee7e7cc Mon Sep 17 00:00:00 2001 From: Jonas L Date: Tue, 11 Jun 2024 16:55:27 +0200 Subject: [PATCH] fix: keep deprecated alias for another major version (#515) This was not removed during the v4.0.0 release, we must therefor reschedule it for the v5.0.0 release. --- changelogs/fragments/keep-deprecated-alias.yml | 2 ++ plugins/modules/server.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/keep-deprecated-alias.yml diff --git a/changelogs/fragments/keep-deprecated-alias.yml b/changelogs/fragments/keep-deprecated-alias.yml new file mode 100644 index 0000000..69c7d38 --- /dev/null +++ b/changelogs/fragments/keep-deprecated-alias.yml @@ -0,0 +1,2 @@ +bugfixes: + - server - Keep `force_upgrade` deprecated alias for another major version. diff --git a/plugins/modules/server.py b/plugins/modules/server.py index dee4a92..350415b 100644 --- a/plugins/modules/server.py +++ b/plugins/modules/server.py @@ -923,7 +923,7 @@ class AnsibleHCloudServer(AnsibleHCloud): "default": False, "aliases": ["force_upgrade"], "deprecated_aliases": [ - {"collection_name": "hetzner.hcloud", "name": "force_upgrade", "version": "4.0.0"} + {"collection_name": "hetzner.hcloud", "name": "force_upgrade", "version": "5.0.0"} ], }, rescue_mode={"type": "str"},