Xen expects keys(other_config) to be snake or it will change them itself!

This commit is contained in:
Julien Fontanet 2016-01-15 17:29:29 +01:00
parent 8839d4f55a
commit 56f78349f8
2 changed files with 4 additions and 4 deletions

View File

@ -42,8 +42,8 @@ const debug = createDebug('xo:xapi')
// ===================================================================
const TAG_BASE_DELTA = 'xo:deltaBase'
const TAG_COPY_SRC = 'xo:copyOf'
const TAG_BASE_DELTA = 'xo:base_delta'
const TAG_COPY_SRC = 'xo:copy_of'
// ===================================================================

View File

@ -127,8 +127,8 @@ export default class {
targetSr = targetXapi.getObject(targetSr._xapiId)
// 1. Find the local base for this SR (if any).
const tag = `xo:baseDelta:${targetSr.uuid}`
let localBaseId = srcVm.other_config[tag]
const tag = `xo:base_delta:${targetSr.uuid}`
const localBaseId = srcVm.other_config[tag]
// 2. Copy.
const dstVm = await (async () => {