Commit 548d63da authored by Łukasz Szymański's avatar Łukasz Szymański
Browse files

change to show the city name - removing debug info

parent 3f4ea224
Pipeline #14886 passed with stages
in 5 minutes and 56 seconds
......@@ -108,18 +108,12 @@ export class VmListComponent implements OnInit {
}
getCity(vm: NodeCloudiator): string {
console.log('LSZ NodeCloudiator vm: ', vm);
if (vm.nodeProperties.geoLocation != null && vm.nodeProperties.geoLocation.city != null) {
return vm.nodeProperties.geoLocation.city;
} else { // find location by locationId
const locationId = vm.originId.split('/')[0];
console.log('LSZ locationId: ', locationId);
const location = this.locationList
.find(value => {
console.log('LSZ value: ', value);
console.log('LSZ value.providerId: ', value.providerId);
return value.providerId === locationId;
});
.find(value => value.providerId === locationId);
return (location && location.geoLocation) ? location.geoLocation.city : 'UNKNOWN';
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment