Refactor providers data
This commit is contained in:
		@@ -58,7 +58,7 @@ func (h *Hetzner) RawServerType(kind string) (string, error) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// GetServerLocation implements Providers.
 | 
					// GetServerLocation implements Providers.
 | 
				
			||||||
func (h *Hetzner) GetServerLocation(location string) (string, error) {
 | 
					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)
 | 
							return "", fmt.Errorf("location isn't supported by hetzner: %s", location)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	switch location {
 | 
						switch location {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user