module Katello module Pulp class DockerTag < PulpContentUnit CONTENT_TYPE = "docker_tag".freeze def update_model(model) taggable_class = backend_data['manifest_type'] == "list" ? ::Katello::DockerManifestList : ::Katello::DockerManifest model.docker_taggable = taggable_class.find_by(:digest => backend_data['manifest_digest']) model.name = backend_data['name'] model.save! end end end end