diff --git a/plugins/actions/validate.py b/plugins/actions/validate.py index ebedd3ed8..4c979f435 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 in error.message: + if "schema is missing" not str(error): for i in range(0, len(error.path)): if i == 0: given = "[{}] Given value for {}".format(