provider/digital_ocean.go
func (p *DigitalOceanProvider) ApplyChanges(changes *plan.Changes) error {
	combinedChanges := make([]*DigitalOceanChange, 0, len(changes.Create)+len(changes.UpdateNew)+len(changes.Delete))

	combinedChanges = append(combinedChanges, newDigitalOceanChanges(DigitalOceanCreate, changes.Create)...)
	combinedChanges = append(combinedChanges, newDigitalOceanChanges(DigitalOceanUpdate, changes.UpdateNew)...)
	combinedChanges = append(combinedChanges, newDigitalOceanChanges(DigitalOceanDelete, changes.Delete)...)

	return p.submitChanges(combinedChanges)
}
func (p *DigitalOceanProvider) ApplyChanges(changes *plan.Changes) error {
	combinedChanges := make([]*DigitalOceanChange, 0, len(changes.Create)+len(changes.UpdateNew)+len(changes.Delete))

	combinedChanges = append(combinedChanges, newDigitalOceanChanges(DigitalOceanCreate, changes.Create)...)
	combinedChanges = append(combinedChanges, newDigitalOceanChanges(DigitalOceanUpdate, changes.UpdateNew)...)
	combinedChanges = append(combinedChanges, newDigitalOceanChanges(DigitalOceanDelete, changes.Delete)...)

	return p.submitChanges(combinedChanges)
}
func ( p * DigitalOceanProvider ) ApplyChanges ( changes * plan . Changes ) error { combinedChanges := make ( [ ] * DigitalOceanChange , 0 , len ( changes . Create ) + len ( changes . UpdateNew ) + len ( changes . Delete ) ) combinedChanges = append ( combinedChanges , newDigitalOceanChanges ( DigitalOceanCreate , changes . Create ) ... ) combinedChanges = append ( combinedChanges , newDigitalOceanChanges ( DigitalOceanUpdate , changes . UpdateNew ) ... ) combinedChanges = append ( combinedChanges , newDigitalOceanChanges ( DigitalOceanDelete , changes . Delete ) ... ) return p . submitChanges ( combinedChanges ) }
// ApplyChanges applies a given set of changes in a given zone.
ApplyChanges applies a given set of changes in a given zone .