You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (StringUtils.isBlank(bootMode) || !bootMode.equalsIgnoreCase("uefi")) {
3224
-
thrownewException("VM instance with Virtual TPM must use UEFI boot mode");
3225
-
}
3226
3223
for (VirtualDevicedevice : vmMo.getAllDeviceList()) {
3227
3224
if (deviceinstanceofVirtualTPM) {
3228
-
logger.debug("Virtual TPM device has already been added, returning");
3225
+
logger.debug(String.format("Virtual TPM device has already been added to VM , returning", vmMo.getVmName()));
3229
3226
return;
3230
3227
}
3231
3228
}
3232
3229
logger.debug("Adding Virtual TPM device");
3233
3230
addVirtualTPMDevice(vmConfigSpec);
3234
3231
} elseif (virtualTPMEnabled == null) {
3235
-
logger.debug("Virtual TPM device is neither enabled nor disabled, skipping");
3232
+
logger.debug(String.format("Virtual TPM device is neither enabled nor disabled for VM %s, skipping", vmMo.getVmName()));
3236
3233
} else {
3237
-
logger.debug(String.format("Virtual TPM device is disabled. It is enabled when boot mode is UEFI (actually %s) and vTPM is enabled (actually %s)", bootMode, virtualTPMEnabled));
3234
+
logger.debug(String.format("Virtual TPM device is disabled for VM %s", vmMo.getVmName()));
3238
3235
for (VirtualDevicedevice : vmMo.getAllDeviceList()) {
3239
3236
if (deviceinstanceofVirtualTPM) {
3240
-
logger.debug("Removing Virtual TPM device as it is disabled");
3237
+
logger.debug(String.format("Removing Virtual TPM device from VM %s as it is disabled", vmMo.getVmName()));
0 commit comments