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 26, 2022
1 parent 32750cf commit e46eea8
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ def container_images
add_properties(
# 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 e46eea8

Please sign in to comment.