hi,
i'm trying to get all vm-files via:
allVmFiles = allVmFiles.concat(allVms[i].layoutEx.file);
this works fine, but i recognised that - after a storage migration or change of the datastore name - layoutEx.file gives back the old datastore name instead of the new one.
i tried to refresh using RefreshStorageInfo, but i only get exceptions.
so i have 2 questions:
1: would RefreshStorageInfo change this behaviour ?
2: if yes, what's the correct syntax ?
i really appreciate your help.
thanks, chris