app/lib/actions/katello/capsule_content/sync.rb in katello-3.5.2 vs app/lib/actions/katello/capsule_content/sync.rb in katello-3.6.0.rc1

- old
+ new

@@ -16,10 +16,11 @@ def humanized_input ["'#{input['smart_proxy']['name']}'"] + super end + # rubocop:disable MethodLength def plan(smart_proxy, options = {}) action_subject(smart_proxy) capsule_content = ::Katello::CapsuleContent.new(smart_proxy) capsule_content.ping_pulp capsule_content.verify_ueber_certs @@ -70,9 +71,16 @@ if skip_metadata_check plan_action(Katello::Repository::MetadataGenerate, repo, capsule_id: capsule_content.capsule.id, force: true) + end + if repo.is_a?(::Katello::Repository) && + repo.distribution_bootable? && + repo.download_policy == ::Runcible::Models::YumImporter::DOWNLOAD_ON_DEMAND + plan_action(Katello::Repository::FetchPxeFiles, + id: repo.id, + capsule_id: capsule_content.capsule.id) end end end end end