chore(xen-api/getObjectByUuid): explicit test
This commit is contained in:
parent
746c301f39
commit
95ac0a861a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user