vm.create() can set the description.

This commit is contained in:
Julien Fontanet 2015-06-18 16:09:59 +02:00
parent 379771a5c1
commit 0abfb9f1e4

View File

@ -30,6 +30,7 @@ $isVMRunning = do ->
# TODO: Implement ACLs
create = $coroutine ({
installation
name_description
name_label
template
VDIs
@ -37,6 +38,7 @@ create = $coroutine ({
}) ->
vm = yield @getXAPI(template).createVm(template.id, {
installRepository: installation && installation.repository,
nameDescription: name_description,
nameLabel: name_label,
vdis: VDIs,
vifs: VIFs
@ -56,8 +58,9 @@ create.params = {
}
}
# Name of the new VM.
# Name/description of the new VM.
name_label: { type: 'string' }
name_description: { type: 'string', optional: true }
# TODO: add the install repository!
# VBD.insert/eject