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

feat: return server type category (#687)

##### SUMMARY

Related to
https://docs.hetzner.cloud/changelog#2025-08-25-category-for-server-types
This commit is contained in:
Jonas L. 2025-09-08 13:02:45 +02:00 committed by GitHub
parent 923057c7b6
commit 3d809cbc6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- server_type_info - Return new Server Type ``category`` property.

View file

@ -65,6 +65,11 @@ hcloud_server_type_info:
returned: always returned: always
type: str type: str
sample: Falkenstein DC Park 1 sample: Falkenstein DC Park 1
category:
description: Category of Server Type
returned: always
type: str
sample: Shared vCPU
cores: cores:
description: Number of cpu cores a server of this type will have description: Number of cpu cores a server of this type will have
returned: always returned: always
@ -151,6 +156,7 @@ class AnsibleHCloudServerTypeInfo(AnsibleHCloud):
"id": server_type.id, "id": server_type.id,
"name": server_type.name, "name": server_type.name,
"description": server_type.description, "description": server_type.description,
"category": server_type.category,
"cores": server_type.cores, "cores": server_type.cores,
"memory": server_type.memory, "memory": server_type.memory,
"disk": server_type.disk, "disk": server_type.disk,