Esempio n. 1
0
func (command *commandDelete) Execute(resource *handler.Resource) {
	params := resource.Params.(*paramsDelete)
	err := osVolumeAttach.Delete(command.Ctx.ServiceClient, params.serverID, params.attachmentID).ExtractErr()
	if err != nil {
		resource.Err = err
		return
	}
	resource.Result = fmt.Sprintf("Successfully deleted volume attachment [%s]\n", params.attachmentID)
}
Esempio n. 2
0
// Delete requests the deletion of a previous stored VolumeAttachment from the server.
func Delete(client *gophercloud.ServiceClient, serverID, aID string) os.DeleteResult {
	return os.Delete(client, serverID, aID)
}