From 000f8dcc8f98f9028aced098c34380c279b04868 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 4 Aug 2017 23:42:38 +0900 Subject: [PATCH] Fix bug that diff.always = yes in ansible.cfg won't be respected (#27746) --- lib/ansible/cli/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/cli/__init__.py b/lib/ansible/cli/__init__.py index f656599027e..2844b4d8ffa 100644 --- a/lib/ansible/cli/__init__.py +++ b/lib/ansible/cli/__init__.py @@ -488,7 +488,7 @@ class CLI(with_metaclass(ABCMeta, object)): help="don't make any changes; instead, try to predict some of the changes that may occur") parser.add_option('--syntax-check', dest='syntax', action='store_true', help="perform a syntax check on the playbook, but do not execute it") - parser.add_option("-D", "--diff", default=False, dest='diff', action='store_true', + parser.add_option("-D", "--diff", default=C.DIFF_ALWAYS, dest='diff', action='store_true', help="when changing (small) files and templates, show the differences in those files; works great with --check") if meta_opts: