Commit 01c6f33c authored by loiclau's avatar loiclau

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

parent d3155783
......@@ -839,6 +839,14 @@ class CentreonAPI
$exported->ariane_pop();
}
/**
* @param $newOption
*/
public function setOption($newOption)
{
$this->options = $newOption;
}
/**
* Export All configuration
*/
......@@ -866,8 +874,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";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment