X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PlanetLabConf%2Fgetupdatesxml.php;h=7c1d6acb90b5740a5276a249a992cb1e74f24711;hb=e9b0065a02763ed6ba0d6499c8d4fc723eb3a410;hp=8ca522b07c5c13540a6603fe1cf6e51031d209c7;hpb=9f7f2642744c095e9610214e1210c576501724ab;p=nodeconfig.git diff --git a/PlanetLabConf/getupdatesxml.php b/PlanetLabConf/getupdatesxml.php index 8ca522b..7c1d6ac 100755 --- a/PlanetLabConf/getupdatesxml.php +++ b/PlanetLabConf/getupdatesxml.php @@ -80,9 +80,9 @@ function xmlspecialchars($string, $parsed = ENT_UNPARSED) if (!empty($_REQUEST['node_id'])) { $node = $adm->GetSlivers(intval($_REQUEST['node_id'])); } else { - $nodenetworks = $adm->GetNodeNetworks(array('ip' => $_SERVER['REMOTE_ADDR'])); - if (!empty($nodenetworks)) { - $node = $adm->GetSlivers($nodenetworks[0]['node_id']); + $interfaces = $adm->GetInterfaces(array('ip' => $_SERVER['REMOTE_ADDR'])); + if (!empty($interfaces)) { + $node = $adm->GetSlivers($interfaces[0]['node_id']); } }