{"action":"created","issue":{"url":"https://api.github.com/repos/Alignak-monitoring/alignak/issues/304","repository_url":"https://api.github.com/repos/Alignak-monitoring/alignak","labels_url":"https://api.github.com/repos/Alignak-monitoring/alignak/issues/304/labels{/name}","comments_url":"https://api.github.com/repos/Alignak-monitoring/alignak/issues/304/comments","events_url":"https://api.github.com/repos/Alignak-monitoring/alignak/issues/304/events","html_url":"https://github.com/Alignak-monitoring/alignak/issues/304","id":161034583,"number":304,"title":"Hostgroups realm breaks configuration loading","user":{"login":"mohierf","id":2932687,"avatar_url":"https://avatars.githubusercontent.com/u/2932687?v=3","gravatar_id":"","url":"https://api.github.com/users/mohierf","html_url":"https://github.com/mohierf","followers_url":"https://api.github.com/users/mohierf/followers","following_url":"https://api.github.com/users/mohierf/following{/other_user}","gists_url":"https://api.github.com/users/mohierf/gists{/gist_id}","starred_url":"https://api.github.com/users/mohierf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohierf/subscriptions","organizations_url":"https://api.github.com/users/mohierf/orgs","repos_url":"https://api.github.com/users/mohierf/repos","events_url":"https://api.github.com/users/mohierf/events{/privacy}","received_events_url":"https://api.github.com/users/mohierf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-18T17:23:13Z","updated_at":"2016-06-19T08:19:50Z","closed_at":null,"body":"When Alignak lod its configuration an error is raised if an hostgroups has a `realm` attribute. See comments inf the following configuration file:\r\n```\r\ndefine hostgroup{\r\n    hostgroup_name      main_group\r\n    alias               Main group\r\n    hostgroup_members   servers, sub_main_2\r\n    ; realm               Italy\r\n}\r\ndefine hostgroup{\r\n    hostgroup_name      servers\r\n    alias               Servers\r\n    notes               Group for all the servers\r\n    members             Shinken, remotepoller\r\n    hostgroup_members   HG_NO_SPACES, HG WITH SPACES\r\n}\r\ndefine hostgroup{\r\n    hostgroup_name      sub_main_2\r\n    alias               Virtual machines\r\n    members             vm-fred, sim-vm2, sim-vm3\r\n    ; realm               France\r\n}\r\n\r\ndefine hostgroup {\r\n    hostgroup_name      HG_NO_SPACES\r\n    alias               HG_NO_SPACES_ALIAS\r\n    members             vm-fred, sim-vm2, sim-vm3\r\n}\r\n\r\ndefine hostgroup {\r\n    hostgroup_name      HG WITH SPACES\r\n    alias               HG WITH SPACES ALIAS\r\n    members             vm-fred, sim-vm2, sim-vm3\r\n}\r\n```\r\n\r\nThe error raised is:\r\n```\r\n\r\nConfiguration loading exception: 'str' object has no attribute 'realm'\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/Alignak-monitoring/alignak/issues/comments/226985502","html_url":"https://github.com/Alignak-monitoring/alignak/issues/304#issuecomment-226985502","issue_url":"https://api.github.com/repos/Alignak-monitoring/alignak/issues/304","id":226985502,"user":{"login":"mohierf","id":2932687,"avatar_url":"https://avatars.githubusercontent.com/u/2932687?v=3","gravatar_id":"","url":"https://api.github.com/users/mohierf","html_url":"https://github.com/mohierf","followers_url":"https://api.github.com/users/mohierf/followers","following_url":"https://api.github.com/users/mohierf/following{/other_user}","gists_url":"https://api.github.com/users/mohierf/gists{/gist_id}","starred_url":"https://api.github.com/users/mohierf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohierf/subscriptions","organizations_url":"https://api.github.com/users/mohierf/orgs","repos_url":"https://api.github.com/users/mohierf/repos","events_url":"https://api.github.com/users/mohierf/events{/privacy}","received_events_url":"https://api.github.com/users/mohierf/received_events","type":"User","site_admin":false},"created_at":"2016-06-19T08:19:50Z","updated_at":"2016-06-19T08:19:50Z","body":"Using the 0.2 version"}}
{"actor":{"display_login":"mohierf"}}