Skip to content

Commit e609aa8

Browse files
authored
Skip systemVM template registration for Simulator (apache#5954)
* Skip systemVM template registration for Simulator * simplify
1 parent 6495bc1 commit e609aa8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

server/src/main/java/com/cloud/storage/StorageManagerImpl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2808,6 +2808,9 @@ public void doInTransactionWithoutResult(final TransactionStatus status) {
28082808
Pair<String, Long> storeUrlAndId = new Pair<>(url, store.getId());
28092809
for (HypervisorType hypervisorType : hypSet) {
28102810
try {
2811+
if (HypervisorType.Simulator == hypervisorType) {
2812+
continue;
2813+
}
28112814
String templateName = getValidTemplateName(zoneId, hypervisorType);
28122815
Pair<Hypervisor.HypervisorType, String> hypervisorAndTemplateName =
28132816
new Pair<>(hypervisorType, templateName);

0 commit comments

Comments
 (0)