X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=getsshkeys.py;h=7932ab3a198aedcd689b370b1cf4907946922a15;hb=57fc3f2c580971f7a31c708764557d6273b83216;hp=7b747596678b2b87cf1ac5e79bbb508cea4620ee;hpb=16b7bc48471b0695e72320fbcf761db695af032e;p=monitor.git diff --git a/getsshkeys.py b/getsshkeys.py index 7b74759..7932ab3 100755 --- a/getsshkeys.py +++ b/getsshkeys.py @@ -143,9 +143,9 @@ class SSHKnownHosts: for net in node["interface_ids"]: nodenetworks.append(net) - plcnodenetworks = self.api.GetInterfaces(self.auth,nodenetworks,["nodenetwork_id","ip"]) + plcnodenetworks = self.api.GetInterfaces(self.auth,nodenetworks,["interface_id","ip"]) for n in plcnodenetworks: - self.nodenetworks[n["nodenetwork_id"]]=n + self.nodenetworks[n["interface_id"]]=n return nodes def _record_from_node(self, node, nokey_list=None):