if not self._blacklisted(host_hrn):
if not self._reserved(host_hrn):
print(self.sfaapi._reserved ,self.guid)
- for hostname, hrn in nodes.iteritems():
+ for hostname, hrn in nodes.items():
if host_hrn == hrn:
print('hostname' ,hostname)
ping_ok = self._do_ping(hostname)
attribute hostname, it will over write the previous value.
"""
hosts_hrn = self.sfaapi.get_resources_hrn()
- for hostname, hrn in hosts_hrn.iteritems():
+ for hostname, hrn in hosts_hrn.items():
if hrn == node:
self.set("hostname", hostname)