func marshalCloudMetadata(cloudsMap map[string]Cloud) ([]byte, error) {
	clouds := cloudSet{make(map[string]*cloud)}
	for name, metadata := range cloudsMap {
		clouds.Clouds[name] = cloudToInternal(metadata, false)
	}
	data, err := yaml.Marshal(clouds)
	if err != nil {
		return nil, errors.Annotate(err, "cannot marshal cloud metadata")
	}
	return data, nil
}
// marshalCloudMetadata marshals the given clouds to YAML.
marshalCloudMetadata marshals the given clouds to YAML.
// marshalCloudMetadata marshals the given clouds to YAML .
func marshalCloudMetadata(cloudsMap map[string]Cloud) ([]byte, error) {
	clouds := cloudSet{make(map[string]*cloud)}
	for name, metadata := range cloudsMap {
		clouds.Clouds[name] = cloudToInternal(metadata, false)
	}
	data, err := yaml.Marshal(clouds)
	if err != nil {
		return nil, errors.Annotate(err, "cannot marshal cloud metadata")
	}
	return data, nil
}
func marshalCloudMetadata ( cloudsMap map [ string ] Cloud ) ( [ ] byte , error ) { clouds := cloudSet { make ( map [ string ] * cloud ) } for name , metadata := range cloudsMap { clouds . Clouds [ name ] = cloudToInternal ( metadata , false ) } data , err := yaml . Marshal ( clouds ) if err != nil { return nil , errors . Annotate ( err , " " ) } return data , nil }
marshalCloudMetadata marshals the given clouds to YAML.
marshalCloudMetadata marshals the given clouds to YAML .