mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #29947 from jfindlay/remote_decode
fileclient: decode file list from master
This commit is contained in:
commit
3c12b451fe
2 changed files with 8 additions and 8 deletions
|
@ -1144,7 +1144,7 @@ class RemoteClient(Client):
|
|||
'prefix': prefix,
|
||||
'cmd': '_file_list'}
|
||||
|
||||
return self.channel.send(load)
|
||||
return [sdecode(fn_) for fn_ in self.channel.send(load)]
|
||||
|
||||
def file_list_emptydirs(self, saltenv='base', prefix='', env=None):
|
||||
'''
|
||||
|
|
|
@ -380,7 +380,7 @@ class Compiler(object):
|
|||
continue
|
||||
if not isinstance(body[state], list):
|
||||
errors.append(
|
||||
'State {0!r} in SLS {1!r} is not formed as a list'
|
||||
'State \'{0}\' in SLS \'{1}\' is not formed as a list'
|
||||
.format(name, body['__sls__'])
|
||||
)
|
||||
else:
|
||||
|
@ -409,7 +409,7 @@ class Compiler(object):
|
|||
if argfirst in ('require', 'watch', 'prereq', 'onchanges'):
|
||||
if not isinstance(arg[argfirst], list):
|
||||
errors.append(('The {0}'
|
||||
' statement in state {1!r} in SLS {2!r} '
|
||||
' statement in state \'{1}\' in SLS \'{2}\' '
|
||||
'needs to be formed as a list').format(
|
||||
argfirst,
|
||||
name,
|
||||
|
@ -991,7 +991,7 @@ class State(object):
|
|||
continue
|
||||
if not isinstance(body[state], list):
|
||||
errors.append(
|
||||
'State {0!r} in SLS {1!r} is not formed as a list'
|
||||
'State \'{0}\' in SLS \'{1}\' is not formed as a list'
|
||||
.format(name, body['__sls__'])
|
||||
)
|
||||
else:
|
||||
|
@ -1028,8 +1028,8 @@ class State(object):
|
|||
if argfirst in ('require', 'watch', 'prereq', 'onchanges'):
|
||||
if not isinstance(arg[argfirst], list):
|
||||
errors.append(
|
||||
'The {0} statement in state {1!r} in '
|
||||
'SLS {2!r} needs to be formed as a '
|
||||
'The {0} statement in state \'{1}\' in '
|
||||
'SLS \'{2}\' needs to be formed as a '
|
||||
'list'.format(argfirst,
|
||||
name,
|
||||
body['__sls__'])
|
||||
|
@ -2240,7 +2240,7 @@ class State(object):
|
|||
# - regex: ^requirepass
|
||||
if comps[0] in skeys:
|
||||
errors.append(
|
||||
'ID {0!r} in template {1!r} contains multiple '
|
||||
'ID \'{0}\' in template \'{1}\' contains multiple '
|
||||
'state declarations of the same type'
|
||||
.format(name, template)
|
||||
)
|
||||
|
@ -2892,7 +2892,7 @@ class BaseHighState(object):
|
|||
# - regex: ^requirepass
|
||||
if comps[0] in skeys:
|
||||
errors.append(
|
||||
'ID {0!r} in SLS {1!r} contains multiple state '
|
||||
'ID \'{0}\' in SLS \'{1}\' contains multiple state '
|
||||
'declarations of the same type'.format(name, sls)
|
||||
)
|
||||
continue
|
||||
|
|
Loading…
Add table
Reference in a new issue