assert_non_equal: fixed condition
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
parent
6c3fd2b79e
commit
9e2b240ffb
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ class assertion_non_equal(base.Function):
|
|||
def execute(self, args):
|
||||
if not super(self.__class__, self).execute(args):
|
||||
return None
|
||||
if args[1] != args[2]:
|
||||
if args[1] == args[2]:
|
||||
log.error("assertion '%s' failed: '%s' == '%s'" % (args[0], args[1], args[2]))
|
||||
raise InvalidProfileException("Assertion '%s' failed." % args[0])
|
||||
return None
|
||||
|
|
|
|||
Loading…
Reference in a new issue