Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite get_secgroup_uuids to avoid resource_by_refid
get_secgroup_uuids has changed in the following ways: * No longer attempts to find a security group name via a resource_by_refid lookup. resource_by_refid only exists as a workaround for AWS compatibility resource which are not backed by an API. Usage of resource_by_refid should be avoided in native resources if at all possible. * If the security group looks like a UUID, assume it is a UUID for a security group that exists * Call client.list_security_groups only once, and only if there is a non-uuid security group specified * Do not attempt to reduce duplicate security groups to a unique list. If that is important for resources it can be done in validation. * Raise PhysicalResourceNotFound if name maps to no group * Raise PhysicalResourceNameAmbiguity if name maps to more than one group Change-Id: I106adc15a7882192884d37c0806947470d139434 Closes-Bug: #1250286
- Loading branch information
Showing
4 changed files
with
42 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters