Merge "Correct typo for matching non-dict ovsdb rows"

This commit is contained in:
Jenkins 2015-04-20 07:34:32 +00:00 committed by Gerrit Code Review
commit 373d2494b5
1 changed files with 6 additions and 4 deletions

View File

@ -169,10 +169,12 @@ def condition_match(row, condition):
elif isinstance(match, list):
raise NotImplementedError()
else:
if op == '==' and val != match:
matched = False
elif op == '!=' and val == match:
matched = False
if op == '=':
if val != match:
matched = False
elif op == '!=':
if val == match:
matched = False
else:
raise NotImplementedError()
return matched