fix(Xapi#exportDeltaVm): remove TAG_BASE_DELTA if full export

Fixes vatesfr/xo-web#1811
This commit is contained in:
Julien Fontanet 2016-12-02 16:09:27 +01:00
parent 32a371bf13
commit 5c7249c8fc

View File

@ -7,6 +7,7 @@ import find from 'lodash/find'
import flatten from 'lodash/flatten'
import includes from 'lodash/includes'
import isEmpty from 'lodash/isEmpty'
import omit from 'lodash/omit'
import tarStream from 'tar-stream'
import uniq from 'lodash/uniq'
import vmdkToVhd from 'xo-vmdk-to-vhd'
@ -860,7 +861,10 @@ export default class Xapi extends XapiBase {
[TAG_BASE_DELTA]: baseVm.uuid
}
}
: vm
: {
...vm,
other_config: omit(vm.other_config, TAG_BASE_DELTA)
}
}, 'streams', {
value: await streams::pAll()
})