chore(xen-api/getObjectByUuid): explicit test

This commit is contained in:
Julien Fontanet 2019-03-29 16:13:10 +01:00
parent 746c301f39
commit 95ac0a861a

View File

@ -582,7 +582,7 @@ export class Xapi extends EventEmitter {
// Objects ids are already UUIDs if they have one.
const object = this._objects.all[uuid]
if (object) return object
if (object !== undefined) return object
if (arguments.length > 1) return defaultValue