HenningHolmDE / hcloud-rust

Unofficial Rust crate for accessing the Hetzner Cloud API
Other
66 stars 6 forks source link

Missing os_flavor `rocky` causes `list_servers` to fail on Rocky Linux servers #12

Closed HenningHolmDE closed 2 years ago

HenningHolmDE commented 2 years ago

Reported here: https://github.com/MaximilianKoestler/hcloud-openapi/issues/15

Can be reproduced on 0.9.0 or earlier with the list_servers example when a Rocky Linux server is running:

$ cargo run --example list_servers API_TOKEN                                              
    Finished dev [unoptimized + debuginfo] target(s) in 0.12s
     Running `target/debug/examples/list_servers API_TOKEN`
Error: "API call to list_servers failed: Serde(Error(\"unknown variant `rocky`, expected one of `centos`, `debian`, `fedora`, `ubuntu`, `unknown`\", line: 172, column: 28))"
HenningHolmDE commented 2 years ago

Fixed in version 0.10.0.