still making both branches closer
[nepi.git] / src / nepi / resources / planetlab / sfa_node.py
index fca374e..e05a3a7 100644 (file)
@@ -534,7 +534,7 @@ class PlanetlabSfaNode(LinuxNode):
             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)
@@ -586,7 +586,7 @@ class PlanetlabSfaNode(LinuxNode):
         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)