chore(xen-api/_setHostAddressInUrl): use _roCall to fetch network ref

Introduced by a84fac1b6
This commit is contained in:
Julien Fontanet 2021-09-14 16:53:04 +02:00
parent 633805cec9
commit fb21e4d585

View File

@ -822,7 +822,7 @@ export class Xapi extends EventEmitter {
if (poolMigrationNetwork !== undefined) {
const hostPifs = new Set(host.PIFs)
try {
const networkRef = await this.call('network.get_by_uuid', poolMigrationNetwork)
const networkRef = await this._roCall('network.get_by_uuid', poolMigrationNetwork)
const networkPifs = await this.getField('network', networkRef, 'PIFs')
const migrationNetworkPifRef = networkPifs.find(hostPifs.has, hostPifs)