mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #21965 from basepi/salt-ssh.file.recurse.21922
[2014.7] Catch msgpack error in file.recurse in salt-ssh
This commit is contained in:
commit
d768fe8ec4
@ -298,9 +298,13 @@ def _file_lists(load, form):
|
||||
rel_fn = rel_fn.replace('\\', '/')
|
||||
ret['files'].append(rel_fn)
|
||||
if save_cache:
|
||||
salt.fileserver.write_file_list_cache(
|
||||
__opts__, ret, list_cache, w_lock
|
||||
)
|
||||
try:
|
||||
salt.fileserver.write_file_list_cache(
|
||||
__opts__, ret, list_cache, w_lock
|
||||
)
|
||||
except NameError:
|
||||
# Catch msgpack error in salt-ssh
|
||||
pass
|
||||
return ret.get(form, [])
|
||||
# Shouldn't get here, but if we do, this prevents a TypeError
|
||||
return []
|
||||
|
Loading…
Reference in New Issue
Block a user