func GetRegion(zone string) (string, error) {
	if zone == "" {
		return "", daisy.Errf("zone is empty. Can't determine region")
	}
	zoneStrs := strings.Split(zone, "-")
	if len(zoneStrs) < 2 {
		return "", daisy.Errf("%v is not a valid zone", zone)
	}
	return strings.Join(zoneStrs[:len(zoneStrs)-1], "-"), nil
}
GetRegion extracts region from a zone
package paramhelper
import (
	"strings"
	"github.com/GoogleCloudPlatform/compute-image-tools/daisy"
)