mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
syncrule/run: use new sync class
This commit is contained in:
parent
bec233d940
commit
e16dce9880
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
use Icinga\Module\Director\Web\Controller\ActionController;
|
use Icinga\Module\Director\Web\Controller\ActionController;
|
||||||
use Icinga\Module\Director\Objects\SyncRule;
|
use Icinga\Module\Director\Objects\SyncRule;
|
||||||
use Icinga\Module\Director\Sync\Sync;
|
use Icinga\Module\Director\Import\Sync;
|
||||||
use Icinga\Exception\InvalidPropertyException;
|
use Icinga\Exception\InvalidPropertyException;
|
||||||
use Icinga\Web\Notification;
|
use Icinga\Web\Notification;
|
||||||
|
|
||||||
@ -20,8 +20,8 @@ class Director_SyncruleController extends ActionController
|
|||||||
|
|
||||||
public function runAction()
|
public function runAction()
|
||||||
{
|
{
|
||||||
if ($runId = Import::run($id = SyncRule::load($this->params->get('id'), $this->db()))) {
|
if ($runId = Sync::run(SyncRule::load($this->params->get('id'), $this->db()))) {
|
||||||
Notification::success('adf' . $runId);
|
Notification::success('Just testing');
|
||||||
$this->redirectNow('director/list/syncrule');
|
$this->redirectNow('director/list/syncrule');
|
||||||
} else {
|
} else {
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user