Skip to content

Commit

Permalink
docs: cx11 is name, not an id (#381)
Browse files Browse the repository at this point in the history
It doesn't make a real impact, as the `id_or_name` method is called on
the object later, but to be technically correct, it would be better to
pass the server name as `name` instead of `id`.
  • Loading branch information
daroczig committed Apr 8, 2024
1 parent 5ef25ab commit b745d40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/create_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

response = client.servers.create(
name="my-server",
server_type=ServerType("cx11"),
server_type=ServerType(name="cx11"),
image=Image(name="ubuntu-20.04"),
)
server = response.server
Expand Down

0 comments on commit b745d40

Please sign in to comment.