Untitled
unknown
python
2 years ago
625 B
7
Indexable
def getClusterMachinesList(self):
'''
Get cluster hostnames of which this server is a member.
'''
_clusterdevices = []
deviceRoot = self.dmd.getDmdRoot("Devices")
for clusterdnsname in self.clusterdevices:
try:
clusterip = getHostByName(clusterdnsname)
_clusterdevices.append(
deviceRoot.findDeviceByIdOrIp(clusterip)
)
except(gaierror):
_clusterdevices.append('Unable to resolve hostname {0}'.format(
clusterdnsname))
return _clusterdevicesEditor is loading...
Leave a Comment