Browse Source

WIP #1573 Remove Thor slaves and spares from configgen output

Remove Thor slaves and spares from configgen output when using the -list and -listall options.

Signed-off-by: Sridhar Meda <sridhar.meda@lexisnexis.com>
Sridhar Meda 13 years ago
parent
commit
e2a34c8a13
1 changed files with 5 additions and 1 deletions
  1. 5 1
      deployment/configgen/main.cpp

+ 5 - 1
deployment/configgen/main.cpp

@@ -342,7 +342,7 @@ int processRequest(const char* in_cfgname, const char* out_dirname, const char*
               isMaster = true;
               out.appendf("%s=%s;%s%c%s;%s\n", pComponent->queryProp("@name"), pComponent->queryProp("@buildSet"), out_dirname, PATHSEPCHAR, pComponent->queryProp("@name"),"master");
             }
-            else if (!strcmp(instName.toCharArray(), "ThorSlaveProcess") || !strcmp(instName.toCharArray(), "RoxieSlaveProcess"))
+            else if (!strcmp(instName.toCharArray(), "RoxieSlaveProcess"))
               sbChildren.appendf("%s=%s;%s%c%s;%s\n", pComponent->queryProp("@name"), pComponent->queryProp("@buildSet"), out_dirname, PATHSEPCHAR, pComponent->queryProp("@name"),"slave");
           }
 
@@ -372,6 +372,10 @@ int processRequest(const char* in_cfgname, const char* out_dirname, const char*
           ForEach(*itComp)
           {
             IPropertyTree* pInst = &itComp->query();
+
+            if (!strcmp(pInst->queryName(), "ThorSlaveProcess") || !strcmp(pInst->queryName(), "ThorSpareProcess"))
+              continue;
+
             netAddr.clear().append(pInst->queryProp("@netAddress"));
             port.clear().append(pInst->queryProp("@port"));