{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/2064","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/2064/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/2064/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/2064/events","html_url":"https://github.com/ManageIQ/manageiq/pull/2064","id":60390008,"number":2064,"title":"Default to using the openstack hostname for event monitoring.","user":{"login":"jrafanie","id":19339,"avatar_url":"https://avatars.githubusercontent.com/u/19339?v=3","gravatar_id":"","url":"https://api.github.com/users/jrafanie","html_url":"https://github.com/jrafanie","followers_url":"https://api.github.com/users/jrafanie/followers","following_url":"https://api.github.com/users/jrafanie/following{/other_user}","gists_url":"https://api.github.com/users/jrafanie/gists{/gist_id}","starred_url":"https://api.github.com/users/jrafanie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrafanie/subscriptions","organizations_url":"https://api.github.com/users/jrafanie/orgs","repos_url":"https://api.github.com/users/jrafanie/repos","events_url":"https://api.github.com/users/jrafanie/events{/privacy}","received_events_url":"https://api.github.com/users/jrafanie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/needs%20changelog","name":"needs changelog","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-09T18:40:05Z","updated_at":"2015-03-09T18:47:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/2064","html_url":"https://github.com/ManageIQ/manageiq/pull/2064","diff_url":"https://github.com/ManageIQ/manageiq/pull/2064.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/2064.patch"},"body":"Related to #1936 and #1800\r\n\r\nWe originally defaulted to ipaddress with this code in 99d6c2dd8f6:\r\n\r\n```ruby\r\n  def event_monitor_available?\r\n    begin\r\n      require 'openstack/openstack_event_monitor'\r\n      options = {}\r\n      options[:username] = self.authentication_userid(:amqp)\r\n      options[:password] = self.authentication_password(:amqp)\r\n      options[:hostname] = self.ipaddress\r\n      OpenstackEventMonitor.available?(options)\r\n    rescue => e\r\n    end\r\n  end\r\n```\r\n\r\ncc @blomquisg, thanks @himdel!"},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/77917038","html_url":"https://github.com/ManageIQ/manageiq/pull/2064#issuecomment-77917038","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/2064","id":77917038,"user":{"login":"miq-bot","id":7806257,"avatar_url":"https://avatars.githubusercontent.com/u/7806257?v=3","gravatar_id":"","url":"https://api.github.com/users/miq-bot","html_url":"https://github.com/miq-bot","followers_url":"https://api.github.com/users/miq-bot/followers","following_url":"https://api.github.com/users/miq-bot/following{/other_user}","gists_url":"https://api.github.com/users/miq-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/miq-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miq-bot/subscriptions","organizations_url":"https://api.github.com/users/miq-bot/orgs","repos_url":"https://api.github.com/users/miq-bot/repos","events_url":"https://api.github.com/users/miq-bot/events{/privacy}","received_events_url":"https://api.github.com/users/miq-bot/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T18:47:31Z","updated_at":"2015-03-09T18:47:31Z","body":"<rubocop />Checked commit https://github.com/jrafanie/manageiq/commit/7387b585c977f26ee1f3db3668071dacb62757bd with rubocop 0.27.1\n2 files checked, 1 offense detected\n\n**vmdb/app/models/mixins/ems_openstack_mixin.rb**\n- [ ] :large_orange_diamond: - [Line 55](https://github.com/jrafanie/manageiq/blob/7387b585c977f26ee1f3db3668071dacb62757bd/vmdb/app/models/mixins/ems_openstack_mixin.rb#L55), Col 28 - [Style/RedundantSelf](http://rubydoc.info/gems/rubocop/0.27.1/RuboCop/Cop/Style/RedundantSelf) - Redundant `self` detected.\n"}}