Skip to content

Commit

Permalink
Fixes #13987 - Capsule Sync Optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
John Mitsch committed Mar 18, 2016
1 parent 19be4a1 commit 4c4628e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/katello/glue/pulp/repo.rb
Expand Up @@ -778,7 +778,7 @@ def capsule_download_policy
end

def distributors_match?(capsule_distributors)
generated_distributors = self.generate_distributors.map { |dist| object_to_hash(dist) }
generated_distributors = self.generate_distributors.map(&:as_json)
capsule_distributors.each do |dist|
dist.merge!(dist["config"])
dist.delete("config")
Expand All @@ -792,7 +792,7 @@ def distributors_match?(capsule_distributors)
end

def importer_matches?(capsule_importer)
generated_importer = object_to_hash(self.generate_importer(true))
generated_importer = self.generate_importer(true).as_json
(generated_importer.to_a - capsule_importer.to_a).empty?
end

Expand Down

0 comments on commit 4c4628e

Please sign in to comment.