Issue #: 5917

if we found the SR, we'll never create it again.
This commit is contained in:
Anthony Xu 2010-08-13 15:17:33 -07:00
parent 5326d0ec89
commit 642d0dfe8a
1 changed files with 9 additions and 7 deletions

View File

@ -5796,15 +5796,17 @@ public abstract class CitrixResourceBase implements StoragePoolResource, ServerR
if (checkSR(sr)) {
return sr;
}
throw new CloudRuntimeException("Check this SR failed");
} else {
if (pool.getPoolType() == StoragePoolType.NetworkFilesystem)
return getNfsSR(pool);
else if (pool.getPoolType() == StoragePoolType.IscsiLUN)
return getIscsiSR(conn, pool);
else
throw new CloudRuntimeException("The pool type: " + pool.getPoolType().name() + " is not supported.");
}
if (pool.getPoolType() == StoragePoolType.NetworkFilesystem)
return getNfsSR(pool);
else if (pool.getPoolType() == StoragePoolType.IscsiLUN)
return getIscsiSR(conn, pool);
else
throw new CloudRuntimeException("The pool type: " + pool.getPoolType().name() + " is not supported.");
}
protected Answer execute(final CheckConsoleProxyLoadCommand cmd) {