Private GIT

Skip to content
Snippets Groups Projects
Unverified Commit 65a0d219 authored by loiclau's avatar loiclau Committed by GitHub
Browse files

feat(centreonApi) add clapi set option (#6065)

parent 641f83e5
No related branches found
No related tags found
No related merge requests found
......@@ -807,6 +807,14 @@ class CentreonAPI
$exported->ariane_pop();
}
/**
* @param $newOption
*/
public function setOption($newOption)
{
$this->options = $newOption;
}
/**
* Export All configuration
*/
......@@ -834,8 +842,7 @@ class CentreonAPI
}
$this->export_filter($splits[0], $this->objectTable[$splits[0]]->getObjectId($splits[1]), $splits[1]);
}
# Don't want return \n
exit($this->return_code);
return $this->return_code;
} else {
// header
echo "{OBJECT_TYPE}{$this->delim}{COMMAND}{$this->delim}{PARAMETERS}\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment