Remove TODO comment
This commit is contained in:
parent
31f47e5abf
commit
b77bcd64fd
|
@ -146,8 +146,7 @@ func validateCredentials(v interface{}, k string) (warnings []string, errors []e
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: not sure this is the best place for this
|
// getRegionFromZone returns the region from a zone for Google cloud.
|
||||||
// Given a Google zone (e.g. us-central1-f) this func returns the Region, us-central1 in this example.
|
|
||||||
func getRegionFromZone(zone string) string {
|
func getRegionFromZone(zone string) string {
|
||||||
if zone != "" && len(zone) > 2 {
|
if zone != "" && len(zone) > 2 {
|
||||||
region := zone[:len(zone)-2]
|
region := zone[:len(zone)-2]
|
||||||
|
|
Loading…
Reference in New Issue