mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Lint: Add index numbers to format {} calls
This commit is contained in:
parent
384570384e
commit
81413896d1
@ -304,8 +304,8 @@ def list_(pkg=None, dir=None, runas=None, env=None, depth=None):
|
||||
|
||||
if depth is not None:
|
||||
if not isinstance(depth, (int, float)):
|
||||
raise salt.exceptions.SaltInvocationError('Error: depth {} must be a number'.format(depth))
|
||||
cmd.append('--depth={}'.format(int(depth)))
|
||||
raise salt.exceptions.SaltInvocationError('Error: depth {0} must be a number'.format(depth))
|
||||
cmd.append('--depth={0}'.format(int(depth)))
|
||||
|
||||
if pkg:
|
||||
# Protect against injection
|
||||
|
Loading…
Reference in New Issue
Block a user