From 827ce90c7aedc2b6de1971e157202ac4daff7a58 Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Fri, 11 May 2012 15:40:59 +0530 Subject: [PATCH] Don't do strict checking for adding simulator host --- agent-simulator/src/com/cloud/resource/SimulatorDiscoverer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent-simulator/src/com/cloud/resource/SimulatorDiscoverer.java b/agent-simulator/src/com/cloud/resource/SimulatorDiscoverer.java index b8c3860afc7..3480830b784 100755 --- a/agent-simulator/src/com/cloud/resource/SimulatorDiscoverer.java +++ b/agent-simulator/src/com/cloud/resource/SimulatorDiscoverer.java @@ -94,7 +94,7 @@ public class SimulatorDiscoverer extends DiscovererBase implements Discoverer, L long memory = _mockAgentMgr.DEFAULT_HOST_MEM_SIZE; long localstorageSize = _mockStorageMgr.DEFAULT_HOST_STORAGE_SIZE; if (scheme.equals("http")) { - if (host == null || !host.equalsIgnoreCase("sim")) { + if (host == null || !host.startsWith("sim")) { String msg = "uri is not of simulator type so we're not taking care of the discovery for this: " + uri; if(s_logger.isDebugEnabled()) {