mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue