mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Can't serialize pydev/stateconf, start on #5055
This commit is contained in:
parent
43c731a75a
commit
123d52bdc6
2 changed files with 13 additions and 1 deletions
|
@ -294,7 +294,11 @@ def sls(mods, env='base', test=None, exclude=None, **kwargs):
|
|||
log.error(msg.format(cache_file))
|
||||
_set_retcode(ret)
|
||||
with open(cfn, 'w+') as fp_:
|
||||
serial.dump(high_, fp_)
|
||||
try:
|
||||
serial.dump(high_, fp_)
|
||||
except TypeError:
|
||||
# Can't serialize pydsl
|
||||
pass
|
||||
return ret
|
||||
|
||||
|
||||
|
|
|
@ -335,6 +335,14 @@ fi
|
|||
ret
|
||||
)
|
||||
|
||||
def test_pydsl(self):
|
||||
'''
|
||||
Test the basics of the pydsl
|
||||
'''
|
||||
ret = self.run_function('state.sls', mods='pydsl-1')
|
||||
import pprint
|
||||
pprint.pprint(ret)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
from integration import run_tests
|
||||
|
|
Loading…
Add table
Reference in a new issue