fix: Fix for fip's binding resource that not belong to current project
fix for fip's binding resource that not belong to current project Change-Id: I26e52a4a31e7dd12023fe5fabfb748eb328870f2
This commit is contained in:
parent
7419565aa2
commit
9bfc537493
@ -107,9 +107,10 @@ export class FloatingIpStore extends Base {
|
||||
promises.push(Promise.resolve({}));
|
||||
}
|
||||
});
|
||||
const results = await Promise.all(promises);
|
||||
results.forEach((result, index) => {
|
||||
let resource_name = '';
|
||||
const results = await Promise.allSettled(promises);
|
||||
results.forEach(({ status, value: result }, index) => {
|
||||
let resource_name = '-';
|
||||
if (status === 'fulfilled') {
|
||||
if (
|
||||
allData[index].port_details &&
|
||||
allData[index].port_details.device_owner === 'compute:nova'
|
||||
@ -128,6 +129,10 @@ export class FloatingIpStore extends Base {
|
||||
) {
|
||||
resource_name = `${result.name}: ${allData[index].fixed_ip_address}`;
|
||||
}
|
||||
} else {
|
||||
// deal with resources from other projects
|
||||
resource_name = `${t('Resource Id')}: ${allData[index].port_details.device_id} `;
|
||||
}
|
||||
allData[index].resource_name = resource_name;
|
||||
});
|
||||
this.list.update({
|
||||
|
Loading…
Reference in New Issue
Block a user