if (hypervisorType == null) {
s_logger.error("Unsupported hypervisor type in command context, hypervisor: " + hypervisor);
return defaultAction(cmd);
}
SecondaryStorageResourceHandler handler = getHandler(hypervisorType);
if (handler == null) {
s_logger.error("No handler can be found for hypervisor type in command context, hypervisor: " + hypervisor);
return defaultAction(cmd);
}
return handler.executeRequest(cmd);
}
return defaultAction(cmd);
}