fix(Xapi#_updateObjectMapProperty): prepare XAPI param

This commit is contained in:
Julien Fontanet 2016-06-21 11:18:35 +02:00
parent 9991ef624c
commit 75cae8c647

View File

@ -304,7 +304,7 @@ export default class Xapi extends XapiBase {
// properties that failed to be set. // properties that failed to be set.
await Promise.all(mapToArray(props, (value, name) => { await Promise.all(mapToArray(props, (value, name) => {
if (value != null) { if (value != null) {
return this.call(`${namespace}.set_${camelToSnakeCase(name)}`, ref, value) return this.call(`${namespace}.set_${camelToSnakeCase(name)}`, ref, prepareXapiParam(value))
} }
})) }))
} }