mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Gate msgpack in salt/modules/data.py
This commit is contained in:
parent
d7e8741f02
commit
02303b22ce
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ def load():
|
|||
datastore_path = os.path.join(__opts__['cachedir'], 'datastore')
|
||||
fn_ = salt.utils.fopen(datastore_path, 'rb')
|
||||
return serial.load(fn_)
|
||||
except (IOError, OSError):
|
||||
except (IOError, OSError, NameError):
|
||||
return {}
|
||||
|
||||
|
||||
|
@ -75,7 +75,7 @@ def dump(new_data):
|
|||
|
||||
return True
|
||||
|
||||
except (IOError, OSError):
|
||||
except (IOError, OSError, NameError):
|
||||
return False
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue