From 8dd40ec4d62b5b4c05132d2f05dffd570ff20891 Mon Sep 17 00:00:00 2001 From: jo Date: Mon, 5 Jan 2026 10:57:31 +0100 Subject: [PATCH] fix: madness --- plugins/modules/primary_ip.py | 1 + plugins/modules/server.py | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/modules/primary_ip.py b/plugins/modules/primary_ip.py index b7b185a..9ad81f6 100644 --- a/plugins/modules/primary_ip.py +++ b/plugins/modules/primary_ip.py @@ -233,6 +233,7 @@ class AnsiblePrimaryIP(AnsibleHCloud): ) # Backward compatible datacenter argument. # datacenter hel1-dc2 => location hel1 + # pylint: disable=disallowed-name part1, _, _ = str(value).partition("-") params["location"] = self.client.locations.get_by_name(part1) elif (value := self.module.params.get("server")) is not None: diff --git a/plugins/modules/server.py b/plugins/modules/server.py index 02da21c..c3ef644 100644 --- a/plugins/modules/server.py +++ b/plugins/modules/server.py @@ -486,6 +486,7 @@ class AnsibleHCloudServer(AnsibleHCloud): # Backward compatible datacenter argument. # datacenter hel1-dc2 => location hel1 if value and not value.isdigit(): + # pylint: disable=disallowed-name part1, _, _ = value.partition("-") params["location"] = self.client.locations.get_by_name(part1) server_type_location = params["location"]