Operator field invalid if Scope_operator field is present

operator field in Conditions for group expressions is invalid if
scope_operator field is set to NOTEQUALS, removing it for the same

Change-Id: I42a4c2586f30952fd4a6cce5235e6c2404c0c6e4
This commit is contained in:
tathgurt 2022-01-18 11:01:09 +05:30
parent bd5cec082e
commit 778dd72e86
1 changed files with 2 additions and 0 deletions

View File

@ -1630,6 +1630,8 @@ class Condition(object):
if self.scope_operator is not None:
if (version.LooseVersion(self.nsx_version) >=
version.LooseVersion(nsx_constants.NSX_VERSION_3_2_0)):
if self.scope_operator == 'NOTEQUALS':
del body['operator']
body['scope_operator'] = self.scope_operator
else:
LOG.warning(