Skip to content

Commit

Permalink
Use auto-model-class for ContainerImages
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
agrare committed Apr 20, 2022
1 parent 619680b commit 20a984a
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ def container_images
# TODO: (bpaskinc) old save matches on [:image_ref, :container_image_registry_id]
# TODO: (bpaskinc) should match on digest when available
# TODO: (mslemr) provider-specific class exists (openshift), but specs fail with them (?)
:model_class => ::ContainerImage,
:manager_ref => %i[image_ref],
:delete_method => :disconnect_inv,
:custom_reconnect_block => custom_reconnect_block
Expand Down

0 comments on commit 20a984a

Please sign in to comment.