Skip to content

Commit

Permalink
Merge pull request #18604 from djberg96/conversion_host_base_class
Browse files Browse the repository at this point in the history
Conversion host base class
  • Loading branch information
agrare authored Mar 29, 2019
2 parents 047ef4c + f9a1656 commit 799d2c5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/models/conversion_host.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'resolv'

class ConversionHost < ApplicationRecord
include NewWithTypeStiMixin
include AuthenticationMixin
Expand Down
2 changes: 1 addition & 1 deletion app/models/conversion_host/configurations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def enable_queue(params, auth_user = nil)
resource = params.delete(:resource)

params[:resource_id] = resource.id
params[:resource_type] = resource.class.name
params[:resource_type] = resource.class.base_class.name

queue_configuration('enable', nil, resource, params, auth_user)
end
Expand Down
2 changes: 1 addition & 1 deletion spec/models/conversion_host/configurations_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
let(:params) do
{
:name => 'transformer',
:resource_type => vm.class.name,
:resource_type => vm.class.base_class.name,
:resource_id => vm.id,
:resource => vm
}
Expand Down

0 comments on commit 799d2c5

Please sign in to comment.