Prechádzať 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 13 rokov pred
rodič
commit
28a120588c
1 zmenil súbory, kde vykonal 5 pridanie a 0 odobranie
  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);
         }