{"action":"opened","issue":{"url":"https://api.github.com/repos/centreon/centreon-glpi/issues/1","labels_url":"https://api.github.com/repos/centreon/centreon-glpi/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/centreon/centreon-glpi/issues/1/comments","events_url":"https://api.github.com/repos/centreon/centreon-glpi/issues/1/events","html_url":"https://github.com/centreon/centreon-glpi/issues/1","id":73375344,"number":1,"title":"Empty IP address on import","user":{"login":"centreon","id":1890152,"avatar_url":"https://avatars.githubusercontent.com/u/1890152?v=3","gravatar_id":"","url":"https://api.github.com/users/centreon","html_url":"https://github.com/centreon","followers_url":"https://api.github.com/users/centreon/followers","following_url":"https://api.github.com/users/centreon/following{/other_user}","gists_url":"https://api.github.com/users/centreon/gists{/gist_id}","starred_url":"https://api.github.com/users/centreon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/centreon/subscriptions","organizations_url":"https://api.github.com/users/centreon/orgs","repos_url":"https://api.github.com/users/centreon/repos","events_url":"https://api.github.com/users/centreon/events{/privacy}","received_events_url":"https://api.github.com/users/centreon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-05T17:24:39Z","updated_at":"2015-05-05T17:24:39Z","closed_at":null,"body":"Lionel Hercot write : \r\n\r\nI have some computers that doesn't have an IP address on the first NIC in GLPI.\r\nWhen I import them with Centreon-GLPI the plugin set the IP address to an empty string.\r\n\r\nI find a solution by changing the following line in the /usr/share/centreon/cron/glpi-import from :\r\nif ($info['ip'] != \"127.0.0.1\") {\r\nTo :\r\nif ($info['ip'] != \"127.0.0.1\" && $info['ip'] != \"\") {\r\n\r\nIt will now take the first IP address that is not empty.\r\n\r\n"}}