always return a checksum key, even if empty

This commit is contained in:
Brian Coca 2016-02-23 15:06:37 -05:00
parent fc57b88356
commit 6eb4633b07

View file

@ -311,6 +311,10 @@ class ActionBase(with_metaclass(ABCMeta, object)):
# empty might be matched, 1 should never match, also backwards compatible # empty might be matched, 1 should never match, also backwards compatible
mystat['stat']['checksum'] = '1' mystat['stat']['checksum'] = '1'
# happens sometimes when it is a dir and not on bsd
if not 'checksum' in mystat['stat']:
mystat['stat']['checksum'] = ''
return mystat['stat'] return mystat['stat']
def _remote_checksum(self, path, all_vars): def _remote_checksum(self, path, all_vars):