syncrule/run: use new sync class

This commit is contained in:
Thomas Gelf 2015-07-24 10:55:05 +02:00
parent bec233d940
commit e16dce9880
1 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
use Icinga\Module\Director\Web\Controller\ActionController;
use Icinga\Module\Director\Objects\SyncRule;
use Icinga\Module\Director\Sync\Sync;
use Icinga\Module\Director\Import\Sync;
use Icinga\Exception\InvalidPropertyException;
use Icinga\Web\Notification;
@ -20,8 +20,8 @@ class Director_SyncruleController extends ActionController
public function runAction()
{
if ($runId = Import::run($id = SyncRule::load($this->params->get('id'), $this->db()))) {
Notification::success('adf' . $runId);
if ($runId = Sync::run(SyncRule::load($this->params->get('id'), $this->db()))) {
Notification::success('Just testing');
$this->redirectNow('director/list/syncrule');
} else {
}