X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PlanetLabConf%2Fkeys.php;h=5fca766af0ba3010403af7ed0d1c59592407c5e4;hb=22cb253e05f6763d87d049c592dc4fd22cb42c29;hp=9d34c422abc83374fcf286f1b34d2c8b870383cf;hpb=ce3fe64fdd40048f63d70b95e119821379800c7b;p=nodeconfig.git diff --git a/PlanetLabConf/keys.php b/PlanetLabConf/keys.php index 9d34c42..5fca766 100755 --- a/PlanetLabConf/keys.php +++ b/PlanetLabConf/keys.php @@ -1,8 +1,8 @@ GetPersons(array('roles' => array($_REQUEST['role']))); $all_persons = $adm->GetPersons(); foreach ($all_persons as $person) { @@ -40,12 +33,17 @@ if (!empty($_REQUEST['role'])) { } } } -if (isset($_REQUEST[PLC_SLICE_PREFIX . '_monitor'])) { - $user = $adm->GetPersons(array('first_name' => 'Site', 'last_name' => 'Assistant')); - if (!empty($user)) { - $persons[] = $user[0]; - } -} + +// +// NOTE: this user is not used by the monitor for the moment. +// +/* // {ple,pl}_monitor user is created on the nodes by the monitor-runlevelagent init script. */ +/* if (isset($_REQUEST[PLC_SLICE_PREFIX . '_monitor'])) { */ +/* $user = $adm->GetPersons(array('first_name' => 'Site', 'last_name' => 'Assistant')); */ +/* if (!empty($user)) { */ +/* $persons[] = $user[0]; */ +/* } */ +/* } */ if (isset($_REQUEST['site_admin']) && isset($_REQUEST['node_id'])) { $nodes = $adm->GetNodes(array(intval($_REQUEST['node_id']))); @@ -55,7 +53,7 @@ if (isset($_REQUEST['site_admin']) && isset($_REQUEST['node_id'])) { if (isset($node)) { // Look up the site $sites = $adm->GetSites(array($node['site_id'])); - // Can't filter on roles so have to bruit force through entire userlist of site. + // Can't filter on roles so have to brute force through entire userlist of site. if ($sites && $sites[0]['person_ids']) { $all_persons = $adm->GetPersons($sites[0]['person_ids']); if (!empty($all_persons))