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

fix: return sorted alias_ips in server_network module (#458)

##### SUMMARY

- test: use testing framework for server_network integration tests
- fix: return sorted alias_ips in server_network module

##### ISSUE TYPE

- Bugfix Pull Request


##### COMPONENT NAME

server_network
This commit is contained in:
Jonas L 2024-02-07 11:45:37 +01:00 committed by GitHub
parent cf52215864
commit 1ae6769210
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 127 additions and 163 deletions

View file

@ -131,7 +131,7 @@ class AnsibleHCloudServerNetwork(AnsibleHCloud):
"network": to_native(self.hcloud_network.name),
"server": to_native(self.hcloud_server.name),
"ip": to_native(self.hcloud_server_network.ip),
"alias_ips": self.hcloud_server_network.alias_ips,
"alias_ips": [to_native(ip) for ip in sorted(self.hcloud_server_network.alias_ips)],
}
def _get_server_and_network(self):