{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/10633","repository_url":"https://api.github.com/repos/ManageIQ/manageiq","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/10633/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/10633/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/10633/events","html_url":"https://github.com/ManageIQ/manageiq/issues/10633","id":172187935,"number":10633,"title":"Unexpected error while downloading drift history report in txt format","user":{"login":"nachandr","id":5183021,"avatar_url":"https://avatars.githubusercontent.com/u/5183021?v=3","gravatar_id":"","url":"https://api.github.com/users/nachandr","html_url":"https://github.com/nachandr","followers_url":"https://api.github.com/users/nachandr/followers","following_url":"https://api.github.com/users/nachandr/following{/other_user}","gists_url":"https://api.github.com/users/nachandr/gists{/gist_id}","starred_url":"https://api.github.com/users/nachandr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nachandr/subscriptions","organizations_url":"https://api.github.com/users/nachandr/orgs","repos_url":"https://api.github.com/users/nachandr/repos","events_url":"https://api.github.com/users/nachandr/events{/privacy}","received_events_url":"https://api.github.com/users/nachandr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-19T18:08:03Z","updated_at":"2016-08-19T18:35:57Z","closed_at":null,"body":"The UI blows up with this error while downloading drift history report in txt format.This error is not seen while downloading the report in CSV format.\r\n\r\nError text: \r\nundefined method `[]' for nil:NilClass [host/drift_to_txt] \r\n\r\nSnippet from production.log:\r\n[----] F, [2016-08-19T13:57:41.118981 #3184:1670bf0] FATAL -- : Error caught: [NoMethodError] undefined method `[]' for nil:NilClass\r\n/var/www/miq/vmdb/app/controllers/application_controller/compare.rb:381:in `block (2 levels) in prepare_data_for_compare_or_drift_report'\r\n/var/www/miq/vmdb/app/controllers/application_controller/compare.rb:376:in `each'\r\n/var/www/miq/vmdb/app/controllers/application_controller/compare.rb:376:in `block in prepare_data_for_compare_or_drift_report'\r\n/var/www/miq/vmdb/app/controllers/application_controller/compare.rb:284:in `each'\r\n/var/www/miq/vmdb/app/controllers/application_controller/compare.rb:284:in `each_slice'\r\n/var/www/miq/vmdb/app/controllers/application_controller/compare.rb:284:in `prepare_data_for_compare_or_drift_report'\r\n/var/www/miq/vmdb/app/controllers/application_controller/compare.rb:399:in `create_compare_or_drift_report'\r\n/var/www/miq/vmdb/app/controllers/application_controller/compare.rb:429:in `create_drift_report'\r\n/var/www/miq/vmdb/app/controllers/application_controller/compare.rb:714:in `drift_to_txt'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:188:in `process_action'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_controller/metal/rendering.rb:30:in `process_action'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:126:in `call'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:126:in `call'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:262:in `dispatch'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'\r\n/opt/rubies/ruby-2.2.5/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/routing/route_set.rb:32:in `serve'\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/241099452","html_url":"https://github.com/ManageIQ/manageiq/issues/10633#issuecomment-241099452","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/10633","id":241099452,"user":{"login":"lgalis","id":12769982,"avatar_url":"https://avatars.githubusercontent.com/u/12769982?v=3","gravatar_id":"","url":"https://api.github.com/users/lgalis","html_url":"https://github.com/lgalis","followers_url":"https://api.github.com/users/lgalis/followers","following_url":"https://api.github.com/users/lgalis/following{/other_user}","gists_url":"https://api.github.com/users/lgalis/gists{/gist_id}","starred_url":"https://api.github.com/users/lgalis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgalis/subscriptions","organizations_url":"https://api.github.com/users/lgalis/orgs","repos_url":"https://api.github.com/users/lgalis/repos","events_url":"https://api.github.com/users/lgalis/events{/privacy}","received_events_url":"https://api.github.com/users/lgalis/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T18:35:57Z","updated_at":"2016-08-19T18:35:57Z","body":"@miq-bot assign @lgalis"}}
{"actor":{"display_login":"lgalis"}}