-
Notifications
You must be signed in to change notification settings - Fork 15
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
Conversation
@@ -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) |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added bug label too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
There was a problem hiding this 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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
Type of change
Note: Fill x in []
Description
Added the active regions to the policies.
For security reasons, all pull requests need to be approved first before running any automated CI