Fix handling when vm.create(installation) is undefined.

This commit is contained in:
Julien Fontanet 2015-06-18 15:18:42 +02:00
parent 7d82e199b7
commit 2f4a76b3fa

View File

@ -36,7 +36,7 @@ create = $coroutine ({
VIFs
}) ->
vm = yield @getXAPI(template).createVm(template.id, {
installRepository: installation.repository,
installRepository: installation && installation.repository,
nameLabel: name_label,
vdis: VDIs,
vifs: VIFs