mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
Use icingadb-RC2`s updated redis schema paths
This commit is contained in:
parent
1bbbaa96ce
commit
442edeefbe
2 changed files with 2 additions and 2 deletions
|
|
@ -101,7 +101,7 @@ abstract class ObjectInspectionDetail extends BaseHtmlElement
|
|||
|
||||
try {
|
||||
$json = $this->getIcingaRedis()
|
||||
->hGet("icinga:config:state:{$this->object->getTableName()}", bin2hex($this->object->id));
|
||||
->hGet("icinga:{$this->object->getTableName()}:state", bin2hex($this->object->id));
|
||||
} catch (Exception $e) {
|
||||
return [$title, sprintf('Failed to load redis data: %s', $e->getMessage())];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ class VolatileState
|
|||
{
|
||||
$type = substr($state->getTableName(), 0, -6);
|
||||
|
||||
$json = $this->redis->hGet("icinga:config:state:{$type}", bin2hex($state->{$type . '_id'}));
|
||||
$json = $this->redis->hGet("icinga:{$type}:state", bin2hex($state->{$type . '_id'}));
|
||||
if ($json !== false) {
|
||||
$data = json_decode($json, true);
|
||||
$data = array_intersect_key($data, array_flip(static::$keys));
|
||||
|
|
|
|||
Loading…
Reference in a new issue