From bd9acedb574c2597360c5b3e1166f0e25cd054ec Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 15 Oct 2013 14:58:15 -0400 Subject: [PATCH] fixed name colision between warnings dict and module Signed-off-by: Brian Coca --- lib/ansible/utils/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/utils/__init__.py b/lib/ansible/utils/__init__.py index 8a9240192d..864d66855f 100644 --- a/lib/ansible/utils/__init__.py +++ b/lib/ansible/utils/__init__.py @@ -47,7 +47,7 @@ VERBOSITY=0 # list of all deprecation messages to prevent duplicate display deprecations = {} -warnings = {} +warns = {} MAX_FILE_SIZE_FOR_DIFF=1*1024*1024 @@ -990,9 +990,9 @@ def warning(msg): new_msg = "\n[WARNING]: %s" % msg wrapped = textwrap.wrap(new_msg, 79) new_msg = "\n".join(wrapped) + "\n" - if new_msg not in warnings: + if new_msg not in warns: display(new_msg, color='bright purple', stderr=True) - warnings[new_msg] = 1 + warns[new_msg] = 1 def combine_vars(a, b):