Refactor providers data
This commit is contained in:
parent
7624e7d00a
commit
bbef71c512
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user