func WriteControllersFile(controllers *Controllers) error {
	data, err := yaml.Marshal(controllers)
	if err != nil {
		return errors.Annotate(err, "cannot marshal yaml controllers")
	}
	return utils.AtomicWriteFile(JujuControllersPath(), data, os.FileMode(0600))
}
// WriteControllersFile marshals to YAML details of the given controllers
// and writes it to the controllers file.
WriteControllersFile marshals to YAML details of the given controllers
and writes it to the controllers file.
// WriteControllersFile marshals to YAML details of the given controllers // and writes it to the controllers file .
func WriteControllersFile(controllers *Controllers) error {
	data, err := yaml.Marshal(controllers)
	if err != nil {
		return errors.Annotate(err, "cannot marshal yaml controllers")
	}
	return utils.AtomicWriteFile(JujuControllersPath(), data, os.FileMode(0600))
}
func WriteControllersFile ( controllers * Controllers ) error { data , err := yaml . Marshal ( controllers ) if err != nil { return errors . Annotate ( err , " " ) } return utils . AtomicWriteFile ( JujuControllersPath ( ) , data , os . FileMode ( 0600 ) ) }
WriteControllersFile marshals to YAML details of the given controllers
and writes it to the controllers file.
WriteControllersFile marshals to YAML details of the given controllers and writes it to the controllers file .