Skip to content

v2.23.0

Latest

Choose a tag to compare

@hcloud-bot hcloud-bot released this 21 Jul 12:30
48f3424

Removed deprecated Datacenter property from Server and PrimaryIP

Removed the deprecated Datacenter property from the Server and PrimaryIP resources. Since the property was already removed from the Hetzner Cloud API, we do not consider this a breaking change (see changelog entry).

Important

Action required: Please update all code that accesses server.datacenter or primary_ip.datacenter to use the location property instead, as shown below.

Before:

server = client.server.get_by_id(5)
print(server.datacenter)

primary_ip = client.primary_ip.get_by_id(5)
print(primary_ip.datacenter)

After:

server = client.server.get_by_id(5)
print(server.location)

primary_ip = client.primary_ip.get_by_id(5)
print(primary_ip.location)

Features

  • remove datacenter property from server and primary_ip (#668) (abdadf3)
  • add deprecation info to load balancer type (#674) (aeebcf8)