Skip to content

Commit

Permalink
Merge "Avoid reading twice the same project"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Aug 6, 2015
2 parents 613a7f2 + e7573d1 commit 7e7a7ce
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -118,7 +118,8 @@ def _ensure_default_security_group_exists(self, proj_id):
return

proj_id = self._project_id_neutron_to_vnc(proj_id)
proj_obj = self._vnc_lib.project_read(id=proj_id)
proj_obj = self._vnc_lib.project_read(id=proj_id,
fields=['security_groups'])
sg_groups = proj_obj.get_security_groups()
for sg_group in sg_groups or []:
if sg_group['to'][-1] == 'default':
Expand Down

0 comments on commit 7e7a7ce

Please sign in to comment.