Skip to content

Commit

Permalink
Merge pull request RedHatInsights#573 from joselsegura/rhobs_mock_fix
Browse files Browse the repository at this point in the history
Error en rhobs mock when generating fake responses
  • Loading branch information
joselsegura authored Feb 8, 2024
2 parents 9a344b3 + b938034 commit b95f541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mocks/rhobs/rhobs_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,6 @@ def get_random_results(query: str):
cluster_data = copy.deepcopy(ANSWERS[cluster_id])
for item in cluster_data:
item["metric"]["_id"] = cluster_id
res["data"]["result"].append(cluster_data)
res["data"]["result"].extend(cluster_data)

return res

0 comments on commit b95f541

Please sign in to comment.