mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Fix minor issues with #42572
See https://github.com/saltstack/salt/pull/42572#pullrequestreview-55270580
This commit is contained in:
parent
333d86d96c
commit
59e19a9c15
@ -24,7 +24,9 @@ __grains__ = {}
|
||||
|
||||
|
||||
def _serial_sanitizer(instr):
|
||||
u'''Replaces the last 1/4 of a string with X's'''
|
||||
'''
|
||||
Replaces the last 1/4 of a string with X's
|
||||
'''
|
||||
length = len(instr)
|
||||
index = int(math.floor(length * .75))
|
||||
return u'{0}{1}'.format(instr[:index], u'X' * (length - index))
|
||||
|
@ -86,7 +86,6 @@ import salt.payload
|
||||
import salt.pillar
|
||||
import salt.syspaths
|
||||
import salt.utils
|
||||
import salt.pillar
|
||||
import salt.utils.args
|
||||
import salt.utils.context
|
||||
import salt.utils.error
|
||||
@ -319,7 +318,7 @@ def load_args_and_kwargs(func, args, data=None, ignore_invalid=False):
|
||||
# list of positional arguments. This keyword argument is
|
||||
# invalid.
|
||||
for key, val in six.iteritems(string_kwarg):
|
||||
invalid_kwargs.append(r'{0}={1}'.format(key, val))
|
||||
invalid_kwargs.append(u'{0}={1}'.format(key, val))
|
||||
else:
|
||||
_args.append(arg)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user