{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/2288","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/2288/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/2288/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/2288/events","html_url":"https://github.com/ManageIQ/manageiq/pull/2288","id":63287211,"number":2288,"title":"Use #connect, .raw_connect is on the class","user":{"login":"brandondunne","id":651659,"avatar_url":"https://avatars.githubusercontent.com/u/651659?v=3","gravatar_id":"","url":"https://api.github.com/users/brandondunne","html_url":"https://github.com/brandondunne","followers_url":"https://api.github.com/users/brandondunne/followers","following_url":"https://api.github.com/users/brandondunne/following{/other_user}","gists_url":"https://api.github.com/users/brandondunne/gists{/gist_id}","starred_url":"https://api.github.com/users/brandondunne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandondunne/subscriptions","organizations_url":"https://api.github.com/users/brandondunne/orgs","repos_url":"https://api.github.com/users/brandondunne/repos","events_url":"https://api.github.com/users/brandondunne/events{/privacy}","received_events_url":"https://api.github.com/users/brandondunne/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-20T19:24:21Z","updated_at":"2015-03-20T23:48:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/2288","html_url":"https://github.com/ManageIQ/manageiq/pull/2288","diff_url":"https://github.com/ManageIQ/manageiq/pull/2288.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/2288.patch"},"body":"Was causing:\r\n```ruby\r\nNoMethodError: undefined method `raw_connect' for #<ConfigurationManagerForeman:0x000000050400d8>\r\n\tfrom ~/.gem/ruby/2.0.0/bundler/gems/rails-8f014fba21f9/activemodel/lib/active_model/attribute_methods.rb:407:in `method_missing'\r\n\tfrom ~/.gem/ruby/2.0.0/bundler/gems/rails-8f014fba21f9/activerecord/lib/active_record/attribute_methods.rb:149:in `method_missing'\r\n\tfrom ~/projects/redhat/manageiq/vmdb/app/models/configured_system_foreman.rb:8:in `provider_object'\r\n\tfrom (irb):3\r\n\tfrom ~/.gem/ruby/2.0.0/bundler/gems/rails-8f014fba21f9/railties/lib/rails/commands/console.rb:47:in `start'\r\n\tfrom ~/.gem/ruby/2.0.0/bundler/gems/rails-8f014fba21f9/railties/lib/rails/commands/console.rb:8:in `start'\r\n\tfrom ~/.gem/ruby/2.0.0/bundler/gems/rails-8f014fba21f9/railties/lib/rails/commands.rb:41:in `<top (required)>'\r\n\tfrom script/rails:6:in `require'\r\n\tfrom script/rails:6:in `<main>'\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/84196439","html_url":"https://github.com/ManageIQ/manageiq/pull/2288#issuecomment-84196439","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/2288","id":84196439,"user":{"login":"kbrock","id":1930,"avatar_url":"https://avatars.githubusercontent.com/u/1930?v=3","gravatar_id":"","url":"https://api.github.com/users/kbrock","html_url":"https://github.com/kbrock","followers_url":"https://api.github.com/users/kbrock/followers","following_url":"https://api.github.com/users/kbrock/following{/other_user}","gists_url":"https://api.github.com/users/kbrock/gists{/gist_id}","starred_url":"https://api.github.com/users/kbrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbrock/subscriptions","organizations_url":"https://api.github.com/users/kbrock/orgs","repos_url":"https://api.github.com/users/kbrock/repos","events_url":"https://api.github.com/users/kbrock/events{/privacy}","received_events_url":"https://api.github.com/users/kbrock/received_events","type":"User","site_admin":false},"created_at":"2015-03-20T23:48:25Z","updated_at":"2015-03-20T23:48:25Z","body":"@Fryguy We're just using the common pattern:\r\n```\r\ngrep -rl `def provider_object\\(connection = nil\\)` app/models\r\napp/models/availability_zone_amazon.rb\r\napp/models/configured_system_foreman.rb\r\napp/models/host_redhat.rb\r\napp/models/mixins/provider_object_mixin.rb\r\napp/models/template_amazon.rb\r\napp/models/template_openstack.rb\r\napp/models/template_redhat.rb\r\napp/models/vm_amazon.rb\r\napp/models/vm_openstack.rb\r\napp/models/vm_or_template/vmware_shared.rb\r\napp/models/vm_redhat.rb\r\n\r\ngrep -rl `def provider_object\\(connection\\)` app/models\r\napp/models/ems_cluster.rb\r\napp/models/ems_folder.rb\r\napp/models/host_vmware.rb\r\n```"}}