You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ./generated/libvirt-storage-pool.js on line 156 (let retList = libvirt_native.virStoragePoolListAllVolumes(this.pool, flags);) the first arg is this.pool but this seems to be wrong as I get the error:
/vagrant/node_modules/libvirt-node/generated/libvirt-storage-pool.js:156
let retList = libvirt_native.virStoragePoolListAllVolumes(this.pool, flags);
^
TypeError: Wrong argument type 0
at module.exports.listAllVolumes (/vagrant/node_modules/libvirt-node/generated/libvirt-storage-pool.js:156:34)
This is the generated code:
/** * Collect the list of storage volumes, and allocate an array to store those * objects. * * TODO: params / returns */listAllVolumes(flags=0){letretList=libvirt_native.virStoragePoolListAllVolumes(this.pool,flags);if(retList==null)thrownewError('virStoragePoolListAllVolumes() failed');returnretList.map(ret=>newvirStorageVol(this.conn,ret));}
Changing this.pool to this.storagePool fixes the issue.
The text was updated successfully, but these errors were encountered:
In
./generated/libvirt-storage-pool.js
on line 156 (let retList = libvirt_native.virStoragePoolListAllVolumes(this.pool, flags);
) the first arg isthis.pool
but this seems to be wrong as I get the error:This is the generated code:
Changing
this.pool
tothis.storagePool
fixes the issue.The text was updated successfully, but these errors were encountered: