Added exception handling around adding security groups. 11/48111/1
authorspisarski <s.pisarski@cablelabs.com>
Thu, 30 Nov 2017 18:57:40 +0000 (11:57 -0700)
committerspisarski <s.pisarski@cablelabs.com>
Thu, 30 Nov 2017 18:57:40 +0000 (11:57 -0700)
commit91d2fd9f9249126b135040b7f86387f887a414b3
tree6438149a143cb319da6d366e362319d10ebc36d6
parent43151f4e44e64b8436bed234f2dcb60dfc643687
Added exception handling around adding security groups.

When a VM instance has a security group associated with it and
the client attempts to add the same security group, a Pike pod
now raises a ClientException where previous releases simply return
None. This patch adds the appropriate exception handling that
allows several existing tests to pass not only with Pike but also
with all OpenStack versions.

JIRA: SNAPS-239

Change-Id: I282df5a2b516dab415ba5e2e7208176f2ba3f270
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
snaps/openstack/utils/nova_utils.py