This commit is contained in:
Suresh Kumar Anaparti 2026-01-16 16:18:48 +05:30
parent 03ca32900e
commit 225341c116
No known key found for this signature in database
GPG Key ID: D7CEAE3A9E71D0AA
1 changed files with 3 additions and 1 deletions

View File

@ -1566,7 +1566,9 @@ public class StorageManagerImpl extends ManagerBase implements StorageManager, C
for (VolumeVO vol : nonDestroyedVols) {
if (vol.getInstanceId() != null) {
volInstance = _vmInstanceDao.findById(vol.getInstanceId());
logMessageInfo.add(String.format("Volume [%s] (attached to VM [%s])", vol.getUuid(), volInstance.getUuid()));
if (volInstance != null) {
logMessageInfo.add(String.format("Volume [%s] (attached to VM [%s])", vol.getUuid(), volInstance.getUuid()));
}
}
}
sb.append(String.join(", ", logMessageInfo));