Skip to content

Commit

Permalink
Merge "Return early on device_owner=network:dhcp filter"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Mar 22, 2016
2 parents c53d7c7 + 904d869 commit 182c96e
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -941,6 +941,10 @@ def get_vmi_list(self, **kwargs):
return self._resource_list(**kwargs)

def resource_list(self, context=None, filters=None, fields=None):
if (filters.get('device_owner') == 'network:dhcp' or
'network:dhcp' in filters.get('device_owner', [])):
return []

if not context:
context = {'is_admin': True}

Expand Down

0 comments on commit 182c96e

Please sign in to comment.