func (r *ProtocolLXD) GetProfileNames() ([]string, error) {
	urls := []string{}

	// Fetch the raw value
	_, err := r.queryStruct("GET", "/profiles", nil, "", &urls)
	if err != nil {
		return nil, err
	}

	// Parse it
	names := []string{}
	for _, url := range urls {
		fields := strings.Split(url, "/profiles/")
		names = append(names, strings.Split(fields[len(fields)-1], "?")[0])
	}

	return names, nil
}
func (r *ProtocolLXD) GetProfileNames() ([]string, error) {
	urls := []string{}

	// Fetch the raw value
	_, err := r.queryStruct("GET", "/profiles", nil, "", &urls)
	if err != nil {
		return nil, err
	}

	// Parse it
	names := []string{}
	for _, url := range urls {
		fields := strings.Split(url, "/profiles/")
		names = append(names, strings.Split(fields[len(fields)-1], "?")[0])
	}

	return names, nil
}
// Profile handling functions
// GetProfileNames returns a list of available profile names