Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed minor changes #674

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

athiruma
Copy link
Collaborator

Type of change

Note: Fill x in []

  • bug
  • enhancement
  • documentation
  • dependencies

Description

Removed some bugs in the code.

For security reasons, all pull requests need to be approved first before running any automated CI

@athiruma athiruma added bug Something isn't working ok-to-test PR ok to test labels Sep 25, 2023
@athiruma athiruma requested a review from ebattat September 25, 2023 07:34
@athiruma athiruma self-assigned this Sep 25, 2023
@athiruma athiruma force-pushed the fix_cro_sub_task_error branch from 5897009 to b27d1da Compare September 25, 2023 08:18
@@ -77,7 +76,7 @@ def __monitor_instances(self):
for ticket_id, cluster_data in cluster_tickets.items():
for cluster_id, cluster_values in cluster_data.items():
cluster_values['cluster_name'] = cluster_id.split('/')[-1]
monitored_ticket_ids[ticket_id].append(cluster_values)
monitored_ticket_ids.setdefault(ticket_id, []).append(cluster_values)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that ok, default is empty list ?
Why not to set it before the loop ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we have two types of resources cluster and non-cluster. This loop is for cluster data. If we didn't find the non-cluster data default is empty. So we need to set the default as an empty list.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Collaborator

@ebattat ebattat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/LGTM

@ebattat ebattat merged commit cd23b81 into redhat-performance:main Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ok-to-test PR ok to test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants