fixes alias_ips by using sorted (#134)

This commit is contained in:
nuux 2022-06-13 08:58:32 +02:00 committed by GitHub
parent 9ba784a1fe
commit fae1449c59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -178,7 +178,7 @@ class AnsibleHcloudServerNetwork(Hcloud):
"network": self.hcloud_network
}
alias_ips = self.module.params.get("alias_ips")
if alias_ips is not None and self.hcloud_server_network.alias_ips.sort() != alias_ips.sort():
if alias_ips is not None and sorted(self.hcloud_server_network.alias_ips) != sorted(alias_ips):
params["alias_ips"] = alias_ips
if not self.module.check_mode: