Refactor providers data

This commit is contained in:
Nikolai Rodionov 2024-04-29 20:13:44 +02:00
parent 7624e7d00a
commit bbef71c512
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD

View File

@ -58,7 +58,7 @@ func (h *Hetzner) RawServerType(kind string) (string, error) {
// GetServerLocation implements Providers.
func (h *Hetzner) GetServerLocation(location string) (string, error) {
if !strings.HasPrefix(location, "HETZNER") {
if !strings.Contains(location, "HETZNER") {
return "", fmt.Errorf("location isn't supported by hetzner: %s", location)
}
switch location {