{"action":"created","issue":{"url":"https://api.github.com/repos/fboender/ansible-cmdb/issues/16","labels_url":"https://api.github.com/repos/fboender/ansible-cmdb/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/fboender/ansible-cmdb/issues/16/comments","events_url":"https://api.github.com/repos/fboender/ansible-cmdb/issues/16/events","html_url":"https://github.com/fboender/ansible-cmdb/issues/16","id":101984903,"number":16,"title":"inventory files with groups of groups causes an error","user":{"login":"palmerit","id":803978,"avatar_url":"https://avatars.githubusercontent.com/u/803978?v=3","gravatar_id":"","url":"https://api.github.com/users/palmerit","html_url":"https://github.com/palmerit","followers_url":"https://api.github.com/users/palmerit/followers","following_url":"https://api.github.com/users/palmerit/following{/other_user}","gists_url":"https://api.github.com/users/palmerit/gists{/gist_id}","starred_url":"https://api.github.com/users/palmerit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palmerit/subscriptions","organizations_url":"https://api.github.com/users/palmerit/orgs","repos_url":"https://api.github.com/users/palmerit/repos","events_url":"https://api.github.com/users/palmerit/events{/privacy}","received_events_url":"https://api.github.com/users/palmerit/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fboender/ansible-cmdb/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-19T19:58:47Z","updated_at":"2015-08-24T18:14:18Z","closed_at":null,"body":"If you have groups of groups, it will throw an error.\r\n\r\n```\r\n[haproxy:children]\r\nlb\r\n\r\n[lb:children]\r\nlb-prod\r\nlb-dev\r\n\r\n[lb-prod]\r\nlb1-prod\r\nlb2-prod\r\n\r\n[lb-dev]\r\nlb1-dev\r\nlb2-dev\r\n```\r\nwhen running ansible-cmdb with the -i flag,   it will error on the haproxy:children section, with:\r\n\r\n$ ansible-cmdb -i hosts/default out/ > output.html\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/ansible-cmdb\", line 290, in <module>\r\n    ansible = Ansible(args, options.inventory)\r\n  File \"/usr/bin/ansible-cmdb\", line 29, in __init__\r\n    self.parse_hosts(self.hosts_file)\r\n  File \"/usr/bin/ansible-cmdb\", line 110, in parse_hosts\r\n    for hostname in normal_groups[apply_group_name]:\r\nKeyError: 'lb'\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fboender/ansible-cmdb/issues/comments/134322971","html_url":"https://github.com/fboender/ansible-cmdb/issues/16#issuecomment-134322971","issue_url":"https://api.github.com/repos/fboender/ansible-cmdb/issues/16","id":134322971,"user":{"login":"fboender","id":2477515,"avatar_url":"https://avatars.githubusercontent.com/u/2477515?v=3","gravatar_id":"","url":"https://api.github.com/users/fboender","html_url":"https://github.com/fboender","followers_url":"https://api.github.com/users/fboender/followers","following_url":"https://api.github.com/users/fboender/following{/other_user}","gists_url":"https://api.github.com/users/fboender/gists{/gist_id}","starred_url":"https://api.github.com/users/fboender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fboender/subscriptions","organizations_url":"https://api.github.com/users/fboender/orgs","repos_url":"https://api.github.com/users/fboender/repos","events_url":"https://api.github.com/users/fboender/events{/privacy}","received_events_url":"https://api.github.com/users/fboender/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T18:14:18Z","updated_at":"2015-08-24T18:14:18Z","body":"That's great to hear Cory! Thank you for verifying the fix. I'm going to release a new version with packages soon, as this is a rather important bugfix."}}