Skip to content

Commit ec26e83

Browse files
author
Alena Prokharchyk
committed
CS-15459: fixed listTags for userVms
1 parent 7acf858 commit ec26e83

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎server/src/com/cloud/tags/TaggedResourceManagerImpl.java‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,14 @@ public String getUuid(String resourceId, TaggedResourceType resourceType) {
282282
if (tableName == null) {
283283
throw new InvalidParameterValueException("Unable to find resource of type " + resourceType + " in the database");
284284
}
285-
identiyUUId = _identityDao.getIdentityUuid(tableName, resourceId);
286-
if (identiyUUId != null) {
287-
break;
288-
}
285+
286+
claz = claz.getSuperclass();
287+
if (claz == Object.class) {
288+
identiyUUId = _identityDao.getIdentityUuid(tableName, resourceId);
289+
}
289290
} catch (Exception ex) {
290291
//do nothing here, it might mean uuid field is missing and we have to search further
291292
}
292-
claz = claz.getSuperclass();
293293
}
294294

295295
if (identiyUUId == null) {

0 commit comments

Comments
 (0)