ImportSourceCoreApi: fix host properties

refs #11315
This commit is contained in:
Thomas Gelf 2016-03-05 18:05:44 +01:00
parent 5520e311f1
commit 5268db6a61
2 changed files with 2 additions and 2 deletions

View File

@ -253,7 +253,7 @@ constants
'event_command' => 'event_command',
'flapping_threshold' => 'flapping_threshold',
'volatile' => 'volatile',
'zone_id' => 'zone_id',
'zone' => 'zone',
'command_endpoint' => 'command_endpoint',
'notes' => 'notes',
'notes_url' => 'notes_url',

View File

@ -63,7 +63,7 @@ class ImportSourceCoreApi extends ImportSourceHook
{
if ($this->api === null) {
$endpoint = $this->db()->getDeploymentEndpoint();
$this->api = $endpoint->api();
$this->api = $endpoint->api()->setDb($this->db());
}
return $this->api;