Просмотр исходного кода

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 лет назад
Родитель
Сommit
28a120588c
1 измененных файлов с 5 добавлено и 0 удалено
  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);
         }