CFY-924: multiple security groups bug while installing

	neutron_plugin.security_group.create() will use existing
	security group if it has the same name, description and
	rules as requested.
don't know. wanted to be on safe side and a bit future proof


On Wed, Jul 16, 2014 at 12:37 AM, Idan Moyal <notifications@github.com>
wrote:

> In neutron_plugin/security_group.py:
>
> >      ctx.runtime_properties['external_id'] = sg['id']
> >
> >
> >  @operation
> >  @with_neutron_client
> >  def delete(ctx, neutron_client, **kwargs):
> > -    neutron_client.delete_security_group(ctx.runtime_properties['external_id'])
> > +    sg_id = ctx.runtime_properties['external_id']
> > +    try:
> > +        neutron_client.delete_security_group(sg_id)
> > +    except neutron_exceptions.NeutronClientException, e:
> > +        if not hasattr(e, 'status_code'):
> > +            raise NonRecoverableError("Neutron client error: " + str(e))
>
> Why would that happen?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/cloudify-cosmo/cloudify-openstack-plugin/pull/13/files#r14965237>
> .
>



-- 

Ilya Sher, Coding-Knight LTD.
+972 54 8166121
http://coding-knight.com/