mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Lint: regexp as a string
This commit is contained in:
parent
ff421679e2
commit
609da7b329
@ -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…
Reference in New Issue
Block a user