mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 20:01:25 -07:00
Tweak only_if deprecation detector.
This commit is contained in:
parent
25dc0ef8d7
commit
709ffda3d1
2 changed files with 6 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue