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:
Sergey Kizunov 2017-08-10 16:35:45 -05:00
parent 3ce18637be
commit 5f85a03636

View File

@ -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')