Skip to content

Commit

Permalink
Fixes #37031 - hammer proxy content info fails when DB has no content…
Browse files Browse the repository at this point in the history
… counts
  • Loading branch information
ianballou committed Jan 4, 2024
1 parent 3b5cce2 commit 9eef6df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hammer_cli_katello/capsule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def extend_data(data)
data["lifecycle_environments"].each do |lce|
lce["content_views"].each do |cv|
cv["repositories"].each do |repo|
if cv["up_to_date"]
if cv["up_to_date"] && !data.dig("content_counts").nil?
cvv_count_repos = data.dig("content_counts", "content_view_versions",
cv["cvv_id"].to_s, "repositories")
cvv_count_repos.each do |_repo_id, counts_and_metadata|
Expand Down

0 comments on commit 9eef6df

Please sign in to comment.