Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

ec2_vpc creating/updating incorrect subnets #2931

Merged
merged 1 commit into from Mar 3, 2016

Conversation

ryannealmes
Copy link
Contributor

The code to create/update/delete resource tags on subnets was incorrectly indented. This lead to subnets being overwritten. I indented code so it only executes tag comparison for matching cidr values. I also updated the names of the variables used to something a little more descriptive.

Would love to extract all this into a methods, but my python is limited. Definitely going to skill up so I can give this module some love.

Linked issue:
#2930

Related commits:
f769305

Please be strict with the review ... I am not a python developer (not that the change was big or anything). There don't seem to be any tests and I don't want to be introducing any bugs.

@gregdek
Copy link
Contributor

gregdek commented Feb 5, 2016

Thanks @ryannealmes. @carsongee please review according to guidelines (http://docs.ansible.com/ansible/developing_modules.html#module-checklist) and comment with text 'shipit' or 'needs_revision' as appropriate.

@robynbergeron
Copy link

@carsongee This change is still pending your review; do you have time to take a look and comment? Please comment with text 'shipit' or 'needs_revision' as appropriate.

@carsongee
Copy link
Contributor

This looks good, the rename make things clearer, and I believe you are correct that we should only be doing the tag merge when the current VPC subnet matches the play subnet being processed.
shipit

@olvesh
Copy link

olvesh commented Feb 26, 2016

Will this fix be out in the wild soon? Our process just blew up after an Ansible upgrade...

@gregdek
Copy link
Contributor

gregdek commented Mar 2, 2016

Thanks again to @ryannealmes for this PR, and thanks @carsongee for reviewing. Marking for inclusion.

@bcoca bcoca added this to the 2.1.0 milestone Mar 3, 2016
bcoca added a commit that referenced this pull request Mar 3, 2016
ec2_vpc creating/updating incorrect subnets
@bcoca bcoca merged commit 5593220 into ansible:devel Mar 3, 2016
@dtoubelis
Copy link

Any chance it can be retrofitted into 2.0.x branch and pushed to Ubuntu PPA?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants