diff --git a/app/models/manageiq/providers/kubernetes/container_manager.rb b/app/models/manageiq/providers/kubernetes/container_manager.rb index 9b5425256d..8f2dda7520 100644 --- a/app/models/manageiq/providers/kubernetes/container_manager.rb +++ b/app/models/manageiq/providers/kubernetes/container_manager.rb @@ -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 @@ -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}'", diff --git a/app/models/manageiq/providers/kubernetes/container_manager/container_image.rb b/app/models/manageiq/providers/kubernetes/container_manager/container_image.rb new file mode 100644 index 0000000000..dc608260a4 --- /dev/null +++ b/app/models/manageiq/providers/kubernetes/container_manager/container_image.rb @@ -0,0 +1,2 @@ +class ManageIQ::Providers::Kubernetes::ContainerManager::ContainerImage < ::ContainerImage +end