function setPuppetInfo(&$instanceInfo, $puppetinfo = array())
 {
     $project = $instanceInfo['project']['default'];
     $projectGroups = OpenStackNovaPuppetGroup::getGroupList($project);
     $this->setPuppetInfoByGroups($instanceInfo, $puppetinfo, $projectGroups);
     $globalGroups = OpenStackNovaPuppetGroup::getGroupList();
     $this->setPuppetInfoByGroups($instanceInfo, $puppetinfo, $globalGroups);
 }
 function getPuppetInfo($formData)
 {
     global $wgOpenStackManagerPuppetOptions;
     $puppetinfo = array();
     if ($wgOpenStackManagerPuppetOptions['enabled']) {
         $puppetGroups = OpenStackNovaPuppetGroup::getGroupList($formData['project']);
         $this->getPuppetInfoByGroup($puppetinfo, $puppetGroups, $formData);
         $puppetGroups = OpenStackNovaPuppetGroup::getGroupList();
         $this->getPuppetInfoByGroup($puppetinfo, $puppetGroups, $formData);
     }
     return $puppetinfo;
 }
 /**
  * @param  $formData
  * @param string $entryPoint
  * @return bool
  */
 function tryModifyGroupSubmit($formData, $entryPoint = 'internal')
 {
     $success = OpenStackNovaPuppetGroup::updateGroupName($formData['puppetgroupid'], $formData['puppetgroupname']);
     if ($success) {
         $this->getOutput()->addWikiMsg('openstackmanager-modifiedpuppetgroup');
     } else {
         $this->getOutput()->addWikiMsg('openstackmanager-failedtomodifypuppetgroup');
     }
     $out = '<br />';
     $out .= Linker::link($this->getPageTitle(), $this->msg('openstackmanager-backpuppetgrouplist')->escaped());
     $this->getOutput()->addHTML($out);
     return true;
 }