func ReadCredentialsFile(file string) (*cloud.CredentialCollection, error) {
	data, err := ioutil.ReadFile(file)
	if err != nil {
		if os.IsNotExist(err) {
			return &cloud.CredentialCollection{}, nil
		}
		return nil, err
	}
	credentials, err := cloud.ParseCredentialCollection(data)
	if err != nil {
		return nil, err
	}
	return credentials, nil
}
// ReadCredentialsFile loads all credentials defined in a given file.
// If the file is not found, it is not an error.
ReadCredentialsFile loads all credentials defined in a given file.
If the file is not found, it is not an error.
// ReadCredentialsFile loads all credentials defined in a given file . // If the file is not found it is not an error .
func ReadCredentialsFile(file string) (*cloud.CredentialCollection, error) {
	data, err := ioutil.ReadFile(file)
	if err != nil {
		if os.IsNotExist(err) {
			return &cloud.CredentialCollection{}, nil
		}
		return nil, err
	}
	credentials, err := cloud.ParseCredentialCollection(data)
	if err != nil {
		return nil, err
	}
	return credentials, nil
}
func ReadCredentialsFile ( file string ) ( * cloud . CredentialCollection , error ) { data , err := ioutil . ReadFile ( file ) if err != nil { if os . IsNotExist ( err ) { return & cloud . CredentialCollection { } , nil } return nil , err } credentials , err := cloud . ParseCredentialCollection ( data ) if err != nil { return nil , err } return credentials , nil }
ReadCredentialsFile loads all credentials defined in a given file.
ReadCredentialsFile loads all credentials defined in a given file .