commit 902154c5b1bd4222e5c0ef484a417885ae1e8991
Author: Steve Baker <email address hidden>
Date: Tue Nov 12 11:28:14 2013 +1300
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
Reviewed: https:/ /review. openstack. org/55946 github. com/openstack/ heat/commit/ 902154c5b1bd422 2e5c0ef484a4178 85ae1e8991
Committed: http://
Submitter: Jenkins
Branch: master
commit 902154c5b1bd422 2e5c0ef484a4178 85ae1e8991
Author: Steve Baker <email address hidden>
Date: Tue Nov 12 11:28:14 2013 +1300
Rewrite get_secgroup_uuids to avoid resource_by_refid
get_ secgroup_ uuids has changed in the following ways: list_security_ groups only once, and only if eNotFound if name maps to no group eNameAmbiguity if name maps to more than one
* 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.
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 PhysicalResourc
* Raise PhysicalResourc
group
Change-Id: I106adc15a78821 92884d37c080694 7470d139434
Closes-Bug: #1250286