From bbef71c512f684700dfa4043709e549fa109ef68 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Mon, 29 Apr 2024 20:13:44 +0200 Subject: [PATCH] Refactor providers data --- internal/providers/hetzner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/providers/hetzner.go b/internal/providers/hetzner.go index ba5ee2b..6613e86 100644 --- a/internal/providers/hetzner.go +++ b/internal/providers/hetzner.go @@ -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 {