Skip systemVM template registration for Simulator (#5954)

* Skip systemVM template registration for Simulator

* simplify
This commit is contained in:
Pearl Dsilva 2022-02-09 00:14:01 +05:30 committed by GitHub
parent 6495bc1a47
commit e609aa8e9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2808,6 +2808,9 @@ public class StorageManagerImpl extends ManagerBase implements StorageManager, C
Pair<String, Long> storeUrlAndId = new Pair<>(url, store.getId());
for (HypervisorType hypervisorType : hypSet) {
try {
if (HypervisorType.Simulator == hypervisorType) {
continue;
}
String templateName = getValidTemplateName(zoneId, hypervisorType);
Pair<Hypervisor.HypervisorType, String> hypervisorAndTemplateName =
new Pair<>(hypervisorType, templateName);