Procházet zdrojové kódy

Show correct node information for external node

On EclWatch, external node is not shown correctly now on
the node list of thor cluster. This fix shows the node name
to be 'external' and the platform to be 'Unknown'.

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>
Kevin Wang před 13 roky
rodič
revize
28a120588c
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. 5 0
      esp/smc/SMCLib/TpWrapper.cpp

+ 5 - 0
esp/smc/SMCLib/TpWrapper.cpp

@@ -1616,6 +1616,11 @@ void CTpWrapper::getMachineList(const char* clusterName,
                     machineInfo.setDomain(pDomain->getName(sName).str());
                 }
             }
+            else
+            {
+                machineInfo.setName("external");
+                machineInfo.setOS(MachineOsUnknown);
+            }
 
             MachineList.append(machineInfo);
         }