Skip to content

Commit

Permalink
Subclass ContainerImage under Kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Apr 21, 2022
1 parent 7ba567b commit a037645
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
class ManageIQ::Providers::Kubernetes::ContainerManager < ManageIQ::Providers::ContainerManager
require_nested :Container
require_nested :ContainerGroup
require_nested :ContainerImage
require_nested :ContainerNode
require_nested :ContainerTemplate
require_nested :EventCatcher
Expand Down Expand Up @@ -976,7 +977,7 @@ def scan_job_create(entity, userid)
end

def raw_scan_job_create(target_class, target_id = nil, userid = nil, target_name = nil)
raise MiqException::Error, _("target_class must be a class not an instance") if target_class.kind_of?(ContainerImage)
raise MiqException::Error, _("target_class must be a class not an instance") if target_class.kind_of?(::ContainerImage)
ManageIQ::Providers::Kubernetes::ContainerManager::Scanning::Job.create_job(
:userid => userid,
:name => "Container Image Analysis: '#{target_name}'",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class ManageIQ::Providers::Kubernetes::ContainerManager::ContainerImage < ::ContainerImage
end

0 comments on commit a037645

Please sign in to comment.