func ParseCredentials(data []byte) (map[string]CloudCredential, error) {
	credentialCollection, err := ParseCredentialCollection(data)
	if err != nil {
		return nil, errors.Trace(err)
	}
	cloudNames := credentialCollection.CloudNames()
	credentials := make(map[string]CloudCredential)
	for _, cloud := range cloudNames {
		v, err := credentialCollection.CloudCredential(cloud)
		if err != nil {
			return nil, errors.Trace(err)
		}
		credentials[cloud] = *v
	}
	return credentials, nil
}
// ParseCredentials parses the given yaml bytes into Credentials, but does
// not validate the credential attributes.
ParseCredentials parses the given yaml bytes into Credentials, but does
not validate the credential attributes.
// ParseCredentials parses the given yaml bytes into Credentials but does // not validate the credential attributes .
func ParseCredentials(data []byte) (map[string]CloudCredential, error) {
	credentialCollection, err := ParseCredentialCollection(data)
	if err != nil {
		return nil, errors.Trace(err)
	}
	cloudNames := credentialCollection.CloudNames()
	credentials := make(map[string]CloudCredential)
	for _, cloud := range cloudNames {
		v, err := credentialCollection.CloudCredential(cloud)
		if err != nil {
			return nil, errors.Trace(err)
		}
		credentials[cloud] = *v
	}
	return credentials, nil
}
func ParseCredentials ( data [ ] byte ) ( map [ string ] CloudCredential , error ) { credentialCollection , err := ParseCredentialCollection ( data ) if err != nil { return nil , errors . Trace ( err ) } cloudNames := credentialCollection . CloudNames ( ) credentials := make ( map [ string ] CloudCredential ) for _ , cloud := range cloudNames { v , err := credentialCollection . CloudCredential ( cloud ) if err != nil { return nil , errors . Trace ( err ) } credentials [ cloud ] = * v } return credentials , nil }
ParseCredentials parses the given yaml bytes into Credentials, but does
not validate the credential attributes.
ParseCredentials parses the given yaml bytes into Credentials but does not validate the credential attributes .