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

Lookup VPC security groups anywhere VPC resources are used #15504

Merged
merged 1 commit into from Sep 4, 2014

Conversation

ryan-lane
Copy link
Contributor

VPC fixes for most of the boto_* modules. This change will translate security group names to security group IDs for VPC resources, since AWS requires group IDs when using VPC.

@basepi basepi closed this Sep 4, 2014
@basepi basepi reopened this Sep 4, 2014
@ghost
Copy link

ghost commented Sep 4, 2014

Test PASSed.
Refer to this link for build results: http://jenkins.saltstack.com/job/salt-pr-build/7631/

log.debug('security group contents {0} pre-conversion'.format(groups))
group_ids = []
for group in groups:
if re.match('sg-.*', group):
Copy link
Member

Choose a reason for hiding this comment

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

compiling the regex outside of the loop should be a little faster. fnmatch or startswith might also be a little faster. This is not a concern of course :)

thatch45 added a commit that referenced this pull request Sep 4, 2014
Lookup VPC security groups anywhere VPC resources are used
@thatch45 thatch45 merged commit 7d3aab5 into saltstack:2014.7 Sep 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants