File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/unit/plugins/modules Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ def exit_json(*args, **kwargs):
7373 checks_passed = True
7474
7575 # only if passphrase_check mode is disabled
76- if args [0 ].params ['passphrase_check' ] is False :
76+ if args [0 ].params ['passphrase_check' ] is not True :
7777 # check every item in certificate if it matches with the result
7878 # and if that fails, don't catch the Exception, so the test will fail
7979 for item in certificate :
@@ -82,10 +82,10 @@ def exit_json(*args, **kwargs):
8282 # if passphrase_check mode is enabled
8383 else :
8484 # fail checks, if passphrase is wrong and passphrase_check kwarg is not False
85- if args [0 ].params ['passphrase' ] == 'PleaseChangeMe-Wrong' and kwargs ['passphrase_check' ] is not False :
85+ if args [0 ].params ['passphrase' ] == 'PleaseChangeMe-Wrong' and kwargs ['passphrase_check' ] is True :
8686 checks_passed = False
8787 # fail checks, if passphrase is correct and passphrase_check kwarg is not True
88- if args [0 ].params ['passphrase' ] == 'PleaseChangeMe' and kwargs ['passphrase_check' ] is not True :
88+ if args [0 ].params ['passphrase' ] == 'PleaseChangeMe' and kwargs ['passphrase_check' ] is not False :
8989 checks_passed = False
9090
9191 if checks_passed :
You can’t perform that action at this time.
0 commit comments