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

ec2_vpc_nat_gateway_info: module stabilization #472

Merged
merged 3 commits into from
Mar 18, 2021

Conversation

alinabuzachis
Copy link
Contributor

@alinabuzachis alinabuzachis commented Mar 12, 2021

SUMMARY

ec2_vpc_nat_gateway_info module stabilization and cleanup

  • Catch and handle (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) on boto API calls
  • Add paginator
  • Document returned data
COMPONENT NAME
ADDITIONAL INFORMATION

ec2_vpc_nat_gateway_info

@ansibullbot
Copy link

@alinabuzachis alinabuzachis force-pushed the cleanup_nat_gw_info branch 4 times, most recently from 790de8b to 1ba6c6c Compare March 12, 2021 15:25
@alinabuzachis alinabuzachis changed the title ec2_vpc_nat_gateway_info: module stabilization [WIP] ec2_vpc_nat_gateway_info: module stabilization Mar 12, 2021
@ansibullbot ansibullbot added the WIP Work in progress label Mar 12, 2021
@alinabuzachis alinabuzachis force-pushed the cleanup_nat_gw_info branch 4 times, most recently from 6034b59 to 4383fc9 Compare March 12, 2021 19:00
@alinabuzachis alinabuzachis changed the title [WIP] ec2_vpc_nat_gateway_info: module stabilization ec2_vpc_nat_gateway_info: module stabilization Mar 12, 2021
@ansibullbot ansibullbot removed the WIP Work in progress label Mar 12, 2021
@alinabuzachis alinabuzachis force-pushed the cleanup_nat_gw_info branch 2 times, most recently from 48f87e2 to 1551011 Compare March 12, 2021 19:45
@alinabuzachis alinabuzachis changed the title ec2_vpc_nat_gateway_info: module stabilization [WIP] ec2_vpc_nat_gateway_info: module stabilization Mar 12, 2021
@ansibullbot ansibullbot added the WIP Work in progress label Mar 12, 2021
@alinabuzachis alinabuzachis force-pushed the cleanup_nat_gw_info branch 2 times, most recently from 2d23cb1 to 53d0b73 Compare March 13, 2021 13:40
@alinabuzachis alinabuzachis changed the title [WIP] ec2_vpc_nat_gateway_info: module stabilization ec2_vpc_nat_gateway_info: module stabilization Mar 13, 2021
@ansibullbot ansibullbot removed the WIP Work in progress label Mar 13, 2021
Copy link
Collaborator

@jillr jillr left a comment

Choose a reason for hiding this comment

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

2 small notes otherwise this looks really good. Thanks @alinabuzachis!

plugins/modules/ec2_vpc_nat_gateway_info.py Show resolved Hide resolved
@@ -122,7 +196,7 @@ def get_nat_gateways(client, module, nat_gateway_id=None):
def main():
argument_spec = dict(
filters=dict(default={}, type='dict'),
nat_gateway_ids=dict(default=[], type='list', elements='str'),
nat_gateway_ids=dict(default=[], type='list', elements='str')
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please keep the trailing comma here. By having a comma already on the last item in this dict, the next time someone adds an option to the module they won't have to add it to this line which reduces the number of lines in the diff when someone reviews it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jillr Thank you for reviewing. I added the trailing comma.

@alinabuzachis alinabuzachis force-pushed the cleanup_nat_gw_info branch 3 times, most recently from d857003 to 500be22 Compare March 16, 2021 17:05
	* Catches and handles (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) on boto API calls
	* Add paginator
	* Document returned data

Signed-off-by: Alina Buzachis <[email protected]>
Signed-off-by: Alina Buzachis <[email protected]>
Signed-off-by: Alina Buzachis <[email protected]>
@jillr jillr merged commit b0f438b into ansible-collections:main Mar 18, 2021
danquixote pushed a commit to danquixote/community.aws that referenced this pull request May 16, 2021
* ec2_vpc_nat_gateway_info: stability
	* Catches and handles (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) on boto API calls
	* Add paginator
	* Document returned data

Signed-off-by: Alina Buzachis <[email protected]>
alinabuzachis added a commit to alinabuzachis/community.aws that referenced this pull request Jul 16, 2021
…lections#472)

* ec2_vpc_nat_gateway_info: stability
	* Catches and handles (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) on boto API calls
	* Add paginator
	* Document returned data

Signed-off-by: Alina Buzachis <[email protected]>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections@b0f438b
alinabuzachis added a commit to alinabuzachis/community.aws that referenced this pull request Jul 19, 2021
* ec2_vpc_nat_gateway_info: stability
	* Catches and handles (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) on boto API calls
	* Add paginator
	* Document returned data

Signed-off-by: Alina Buzachis <[email protected]>
alinabuzachis added a commit to alinabuzachis/community.aws that referenced this pull request Jul 19, 2021
* ec2_vpc_nat_gateway_info: stability
	* Catches and handles (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) on boto API calls
	* Add paginator
	* Document returned data

Signed-off-by: Alina Buzachis <[email protected]>
danielcotton pushed a commit to danielcotton/community.aws that referenced this pull request Nov 23, 2021
* ec2_vpc_nat_gateway_info: stability
	* Catches and handles (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) on boto API calls
	* Add paginator
	* Document returned data

Signed-off-by: Alina Buzachis <[email protected]>
alinabuzachis added a commit to alinabuzachis/community.aws that referenced this pull request May 25, 2022
* ec2_vpc_nat_gateway_info: stability
	* Catches and handles (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) on boto API calls
	* Add paginator
	* Document returned data

Signed-off-by: Alina Buzachis <[email protected]>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections@b0f438b
alinabuzachis pushed a commit to alinabuzachis/community.aws that referenced this pull request May 25, 2022
aws_secret: Handle pagination for bypath=true

Depends-On: ansible/ansible-zuul-jobs#1359
Depends-On: ansible/ansible-zuul-jobs#1362
Depends-On: ansible/ansible-zuul-jobs#1364
SUMMARY

Currently aws_secret returns only 10 secrets, added manual pagination for getting all the secrets as per the task.
Fixes ansible-collections#472.
ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME

aws_secret

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Joseph Torcasso <None>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants