naparuba/shinken — comment on commit 68346431171e93a3984fea510ac7a0c524d5b5de
File:  line 0
By olivierHa:

I am still getting some crash (in mapping.py file this time ) with some "false" requests :

echo -e "GET hostsss\n\n" | nc.traditional localhost 50000

=>

File "/usr/local/lib/python2.6/dist-packages/shinken/modules/livestatus_broker/livestatus_broker.py", line 165, in main
self.do_main()
File "/usr/local/lib/python2.6/dist-packages/shinken/modules/livestatus_broker/livestatus_broker.py", line 222, in do_main
self.manage_lql_thread()
File "/usr/local/lib/python2.6/dist-packages/shinken/modules/livestatus_broker/livestatus_broker.py", line 579, in manage_lql_thread
response, keepalive = self.livestatus.handle_request(open_connections[socketid]['buffer'])
File "/usr/local/lib/python2.6/dist-packages/shinken/modules/livestatus_broker/livestatus.py", line 84, in handle_request
result = query.launch_query()
File "/usr/local/lib/python2.6/dist-packages/shinken/modules/livestatus_broker/livestatus_query.py", line 274, in launch_query
self.outputcolumns = list_livestatus_attributes(self.table)
File "/usr/local/lib/python2.6/dist-packages/shinken/modules/livestatus_broker/mapping.py", line 4505, in list_livestatus_attributes
tableclass = table_class_map[table][0]
KeyError: 'hostsss'