mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
hash_and_stat_file should return a 2-tuple
Callers of `hash_and_stat_file` expect a 2-tuple and an exception will be raised if only a single value is returned. Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
This commit is contained in:
parent
3ce18637be
commit
5f85a03636
@ -1257,7 +1257,7 @@ class RemoteClient(Client):
|
||||
if not os.path.isfile(path):
|
||||
msg = 'specified file {0} is not present to generate hash: {1}'
|
||||
log.warning(msg.format(path, err))
|
||||
return {}
|
||||
return {}, None
|
||||
else:
|
||||
ret = {}
|
||||
hash_type = self.opts.get('hash_type', 'md5')
|
||||
|
Loading…
Reference in New Issue
Block a user