-
Notifications
You must be signed in to change notification settings - Fork 94
Closed
Labels
Description
When you create a server an you give it a numeric name, like 123, when you do operations from the cli it does not work, because it threats the number as ID instead of as server name.
In my opinion you should do one of the following:
- deny server creation that has only numbers as name
- check if the numbers refers to a server name and not just to an id.
Minimal working example
~ $ hcloud server create --datacenter fsn1-dc14 --image rocky-9 --type cx22 --ssh-key agostino.sarubbo --name 123
✓ Waiting for create_server 100% 10s (server: 53764860)
✓ Waiting for start_server 100% 10s (server: 53764860)
Server 53764860 created
IPv4: 49.13.122.232
IPv6: 2a01:4f8:c013:675f::1
IPv6 Network: 2a01:4f8:c013:675f::/64
~ $ hcloud server rebuild --image rocky-9 123
hcloud: server not found: 123
Reactions are currently unavailable