mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
fix pylint
This commit is contained in:
parent
70e36764ee
commit
f69932f506
@ -31,6 +31,7 @@ __func_alias__ = {
|
||||
}
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def _ssh_state(chunks, __opts__, __context__, __pillar__, __salt__, st_kwargs,
|
||||
kwargs, test=False):
|
||||
'''
|
||||
@ -78,7 +79,7 @@ def _ssh_state(chunks, __opts__, __context__, __pillar__, __salt__, st_kwargs,
|
||||
try:
|
||||
return json.loads(stdout, object_hook=salt.utils.decode_dict)
|
||||
except Exception as e:
|
||||
log.error("JSON Render failed for: {0}\n{1}".format(stdout, stderr))
|
||||
log.error("JSON Render failed for: %s\n%s", stdout, stderr)
|
||||
log.error(str(e))
|
||||
|
||||
# If for some reason the json load fails, return the stdout
|
||||
|
@ -67,7 +67,6 @@ class SSHStateTest(SSHCase):
|
||||
self._check_dict_ret(ret=ret, val='__id__',
|
||||
exp_ret='second_id', equal=False)
|
||||
|
||||
|
||||
check_file = self.run_function('file.file_exists', ['/tmp/test'])
|
||||
self.assertTrue(check_file)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user