func WriteAccountsFile(controllerAccounts map[string]AccountDetails) error {
	data, err := yaml.Marshal(accountsCollection{controllerAccounts})
	if err != nil {
		return errors.Annotate(err, "cannot marshal accounts")
	}
	return utils.AtomicWriteFile(JujuAccountsPath(), data, os.FileMode(0600))
}
// WriteAccountsFile marshals to YAML details of the given accounts
// and writes it to the accounts file.
WriteAccountsFile marshals to YAML details of the given accounts
and writes it to the accounts file.
// WriteAccountsFile marshals to YAML details of the given accounts // and writes it to the accounts file .
func WriteAccountsFile(controllerAccounts map[string]AccountDetails) error {
	data, err := yaml.Marshal(accountsCollection{controllerAccounts})
	if err != nil {
		return errors.Annotate(err, "cannot marshal accounts")
	}
	return utils.AtomicWriteFile(JujuAccountsPath(), data, os.FileMode(0600))
}
func WriteAccountsFile ( controllerAccounts map [ string ] AccountDetails ) error { data , err := yaml . Marshal ( accountsCollection { controllerAccounts } ) if err != nil { return errors . Annotate ( err , " " ) } return utils . AtomicWriteFile ( JujuAccountsPath ( ) , data , os . FileMode ( 0600 ) ) }
WriteAccountsFile marshals to YAML details of the given accounts
and writes it to the accounts file.
WriteAccountsFile marshals to YAML details of the given accounts and writes it to the accounts file .