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

Added the active regions to the policies #690

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

athiruma
Copy link
Collaborator

@athiruma athiruma commented Nov 15, 2023

Type of change

Note: Fill x in []

  • bug
  • enhancement
  • documentation
  • dependencies

Description

Added the active regions to the policies.

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

@athiruma athiruma added the documentation Improvements or additions to documentation label Nov 15, 2023
@athiruma athiruma requested a review from ebattat November 15, 2023 07:51
@athiruma athiruma self-assigned this Nov 15, 2023
@@ -33,7 +33,7 @@ def run(self):
for policy_dict in policy_result:
policy_dict['region_name'] = self._region
policy_dict['account'] = self._account
self._es_operations.upload_to_elasticsearch(data=policy_dict, index=self._es_index)
self._es_operations.upload_to_elasticsearch(data=policy_dict.copy(), index=self._es_index)
Copy link
Collaborator

Choose a reason for hiding this comment

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

What the purpose of copy ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I do not want to pass ref value, I need to send the values directly.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Did you test it, is it work ?

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

Are u sure its documentation issue ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added bug label too

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK

@athiruma athiruma added the bug Something isn't working label Nov 15, 2023
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

@@ -33,7 +33,7 @@ def run(self):
for policy_dict in policy_result:
policy_dict['region_name'] = self._region
policy_dict['account'] = self._account
self._es_operations.upload_to_elasticsearch(data=policy_dict, index=self._es_index)
self._es_operations.upload_to_elasticsearch(data=policy_dict.copy(), index=self._es_index)
Copy link
Collaborator

Choose a reason for hiding this comment

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

OK

@ebattat ebattat merged commit a438bf5 into redhat-performance:main Nov 15, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
Development

Successfully merging this pull request may close these issues.

2 participants