Fix disk.create().

This commit is contained in:
Julien Fontanet 2015-06-25 13:53:42 +02:00
parent 27b4cf743e
commit 5b8ed496db

View File

@ -5,7 +5,7 @@ import {parseSize} from '../utils'
export async function create ({name, size, sr}) {
const vdi = await this.getXAPI(sr).createVdi(parseSize(size), {
name_label: name,
sr
sr: sr.id
})
return vdi.$id
}