Skip to content

Commit 827ce90

Browse files
Prasanna SanthanamPrasanna Santhanam
Prasanna Santhanam
authored and
Prasanna Santhanam
committed
Don't do strict checking for adding simulator host
1 parent a0efa70 commit 827ce90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent-simulator/src/com/cloud/resource/SimulatorDiscoverer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public Map<? extends ServerResource, Map<String, String>> find(long dcId,
9494
long memory = _mockAgentMgr.DEFAULT_HOST_MEM_SIZE;
9595
long localstorageSize = _mockStorageMgr.DEFAULT_HOST_STORAGE_SIZE;
9696
if (scheme.equals("http")) {
97-
if (host == null || !host.equalsIgnoreCase("sim")) {
97+
if (host == null || !host.startsWith("sim")) {
9898
String msg = "uri is not of simulator type so we're not taking care of the discovery for this: "
9999
+ uri;
100100
if(s_logger.isDebugEnabled()) {

0 commit comments

Comments
 (0)