func extractLocation()

in cli/pkg/lifecycle/get_credentials.go [132:140]


func extractLocation(path string) string {
	parts := strings.Split(path, "/")
	for i, part := range parts {
		if part == "locations" && i+1 < len(parts) {
			return parts[i+1]
		}
	}
	return ""
}