func WritePublicCloudMetadata(cloudsMap map[string]Cloud) error {
	data, err := marshalCloudMetadata(cloudsMap)
	if err != nil {
		return errors.Trace(err)
	}
	return utils.AtomicWriteFile(JujuPublicCloudsPath(), data, 0600)
}
// WritePublicCloudMetadata marshals to YAML and writes the cloud metadata
// to the public cloud file.
WritePublicCloudMetadata marshals to YAML and writes the cloud metadata
to the public cloud file.
// WritePublicCloudMetadata marshals to YAML and writes the cloud metadata // to the public cloud file .
func WritePublicCloudMetadata(cloudsMap map[string]Cloud) error {
	data, err := marshalCloudMetadata(cloudsMap)
	if err != nil {
		return errors.Trace(err)
	}
	return utils.AtomicWriteFile(JujuPublicCloudsPath(), data, 0600)
}
func WritePublicCloudMetadata ( cloudsMap map [ string ] Cloud ) error { data , err := marshalCloudMetadata ( cloudsMap ) if err != nil { return errors . Trace ( err ) } return utils . AtomicWriteFile ( JujuPublicCloudsPath ( ) , data , 0600 ) }
WritePublicCloudMetadata marshals to YAML and writes the cloud metadata
to the public cloud file.
WritePublicCloudMetadata marshals to YAML and writes the cloud metadata to the public cloud file .