app/lib/actions/katello/capsule_content/sync.rb in katello-3.0.0.rc7 vs app/lib/actions/katello/capsule_content/sync.rb in katello-3.0.0
- old
+ new
@@ -79,11 +79,11 @@
def repos_needing_importer_updates(capsule, environment, content_view)
repos = capsule.repos_available_to_capsule(environment, content_view)
repos.select do |repo|
repo_details = capsule.pulp_repo_facts(repo.pulp_id)
next unless repo_details
- capsule_importer = repo_details["importers"][0]["config"]
- !(repo.importer_matches?(capsule_importer))
+ capsule_importer = repo_details["importers"][0].try(:[], "config")
+ capsule_importer.nil? || !(repo.importer_matches?(capsule_importer))
end
end
def rescue_strategy
Dynflow::Action::Rescue::Skip