Added DIFF_ALWAYS constant

When set to True, will always print the diff. Defaults to False.

Fixes #18416 #16073
This commit is contained in:
Andrea Tartaglia 2016-11-16 10:38:43 +00:00 committed by Brian Coca
commit 2291163a7a
3 changed files with 10 additions and 1 deletions

View file

@ -209,7 +209,7 @@ class PlayContext(Base):
_force_handlers = FieldAttribute(isa='bool', default=False)
_start_at_task = FieldAttribute(isa='string')
_step = FieldAttribute(isa='bool', default=False)
_diff = FieldAttribute(isa='bool', default=False)
_diff = FieldAttribute(isa='bool', default=C.DIFF_ALWAYS)
# Fact gathering settings
_gather_subset = FieldAttribute(isa='string', default=C.DEFAULT_GATHER_SUBSET)