Private GIT

Skip to content
Snippets Groups Projects
Commit 90508b4c authored by leoncx's avatar leoncx Committed by Kev
Browse files

CLAPI export can filter for a selected host (#5084)

* Add default filter for export with select

Ref: #4868
parent 04c50528
Branches
Tags
No related merge requests found
...@@ -755,6 +755,9 @@ class CentreonAPI { ...@@ -755,6 +755,9 @@ class CentreonAPI {
$this->initAllObjects(); $this->initAllObjects();
if (isset($this->options['select'])) { if (isset($this->options['select'])) {
if (false === isset($this->options['filter-type'])) {
$this->options['filter-type'] = '^(HOST|SERVICE|HTPL|STPL|CMD)$';
}
CentreonExported::getInstance()->set_filter(1); CentreonExported::getInstance()->set_filter(1);
CentreonExported::getInstance()->set_options($this->options); CentreonExported::getInstance()->set_options($this->options);
$selected = $this->options['select']; $selected = $this->options['select'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment