From f6792b724a2534e908f563dca7f9094af00b2b90 Mon Sep 17 00:00:00 2001 From: Abhijit Menon-Sen Date: Fri, 23 May 2014 21:03:50 +0530 Subject: [PATCH] Don't double (or triple) up common error messages process_common_errors() was called thrice, each time appending to the existing error message, and leading to confusing repetition in the message that was finally displayed. Fixes #7498 --- lib/ansible/utils/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/ansible/utils/__init__.py b/lib/ansible/utils/__init__.py index b1916371fc8..3283b0bae27 100644 --- a/lib/ansible/utils/__init__.py +++ b/lib/ansible/utils/__init__.py @@ -501,7 +501,6 @@ Note: The error may actually appear before this position: line %s, column %s if '"{{' not in probline or "'{{" not in probline: unquoted_var = True - msg = process_common_errors(msg, probline, mark.column) if not unquoted_var: msg = process_common_errors(msg, probline, mark.column) else: @@ -519,7 +518,6 @@ Should be written as: - "{{ foo }}" """ - msg = process_common_errors(msg, probline, mark.column) else: # most likely displaying a file with sensitive content, # so don't show any of the actual lines of yaml just the