mirror of https://github.com/apache/cloudstack.git
Issue #: 5917
if we found the SR, we'll never create it again.
This commit is contained in:
parent
5326d0ec89
commit
642d0dfe8a
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue