Set validate_checksum default yes of fetch to match the doc

This commit is contained in:
KeepZero 2017-04-26 11:08:29 +08:00 committed by Toshio Kuratomi
parent 86a63cfcd7
commit 98e7d4b49d

View file

@ -46,7 +46,7 @@ class ActionModule(ActionBase):
dest = self._task.args.get('dest', None)
flat = boolean(self._task.args.get('flat'))
fail_on_missing = boolean(self._task.args.get('fail_on_missing'))
validate_checksum = boolean(self._task.args.get('validate_checksum', self._task.args.get('validate_md5')))
validate_checksum = boolean(self._task.args.get('validate_checksum', self._task.args.get('validate_md5', True)))
if 'validate_md5' in self._task.args and 'validate_checksum' in self._task.args:
result['failed'] = True