Skip to content

Commit 20a984a

Browse files
committed
Use auto-model-class for ContainerImages
Having the `:model_class` set to `::ContainerImage` meant that auto_model_class was not being called, causing any records which did not have a `:type` explicitly set by the parser would end up having a type set to the base `::ContainerImage` class.
1 parent 619680b commit 20a984a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

app/models/manageiq/providers/inventory/persister/builder/container_manager.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ def container_images
8989
# TODO: (bpaskinc) old save matches on [:image_ref, :container_image_registry_id]
9090
# TODO: (bpaskinc) should match on digest when available
9191
# TODO: (mslemr) provider-specific class exists (openshift), but specs fail with them (?)
92-
:model_class => ::ContainerImage,
9392
:manager_ref => %i[image_ref],
9493
:delete_method => :disconnect_inv,
9594
:custom_reconnect_block => custom_reconnect_block

0 commit comments

Comments
 (0)