Tweak only_if deprecation detector.

This commit is contained in:
Michael DeHaan 2013-10-11 19:12:25 -04:00
parent 25dc0ef8d7
commit 709ffda3d1
2 changed files with 6 additions and 6 deletions

View file

@ -182,7 +182,7 @@ class Task(object):
# load various attributes
self.only_if = ds.get('only_if', 'True')
if self.only_if != True:
if self.only_if != 'True':
utils.deprecated("only_if is a very old feature and has been obsolete since 0.9, please switch to the 'when' conditional as described at http://ansibleworks.com/docs","1.5")
self.when = ds.get('when', None)