diff --git a/openstack_dashboard/api/neutron.py b/openstack_dashboard/api/neutron.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/api/neutron.py
+++ b/openstack_dashboard/api/neutron.py
@@ -283,7 +283,7 @@ class SecurityGroupManager(network_base.SecurityGroupManager):
         sg_ids = []
         for p in ports:
             sg_ids += p.security_groups
-        return self._list(id=set(sg_ids))
+        return self._list(id=set(sg_ids)) if sg_ids else []
 
     def update_instance_security_group(self, instance_id,
                                        new_security_group_ids):
Ensure to return empty when no secgroup is associated to VM

Change-Id: I6a<I>bc6d3d<I>e7cb<I>e<I>e<I>d<I>f2bfbfc5
Closes-Bug: #<I>