diff --git a/plugins/actions/validate.py b/plugins/actions/validate.py index 4c979f435..d0a340474 100644 --- a/plugins/actions/validate.py +++ b/plugins/actions/validate.py @@ -111,7 +111,7 @@ class ActionModule(ActionBase): display.error(msg) reason = "[{}] Reason: {}".format(host, error.reason) try: - if "schema is missing" not str(error): + if "schema is missing" not in str(error): for i in range(0, len(error.path)): if i == 0: given = "[{}] Given value for {}".format(