mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Lint: regexp as a string
This commit is contained in:
parent
cabe863b81
commit
f14f4036df
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ def info(*names, **kwargs):
|
|||
# Run in batches
|
||||
while batch:
|
||||
cmd = 'zypper info -t package {0}'.format(' '.join(batch[:batch_size]))
|
||||
pkg_info.extend(re.split("----*", __salt__['cmd.run_stdout'](cmd, output_loglevel='trace')))
|
||||
pkg_info.extend(re.split(r"----*", __salt__['cmd.run_stdout'](cmd, output_loglevel='trace')))
|
||||
batch = batch[batch_size:]
|
||||
|
||||
for pkg_data in pkg_info:
|
||||
|
|
Loading…
Add table
Reference in a new issue