mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
parent
5686629e27
commit
05362a093d
@ -147,11 +147,10 @@ class IcingaObjectHandler extends RequestHandler
|
||||
}
|
||||
$this->setServiceProperties($params->getRequired('host'), $params->getRequired('name'), $data);
|
||||
} else {
|
||||
$this->persistChanges($object);
|
||||
$object = IcingaObject::createByType($type, $data, $db);
|
||||
$this->persistChanges($object);
|
||||
$this->sendJson($object->toPlainObject(false, true));
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case 'GET':
|
||||
|
Loading…
x
Reference in New Issue
Block a user