mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix indexing error
both the existing code and my addition erroneously strip the first result from the semodule call
This commit is contained in:
parent
4e49c1e991
commit
516a67e6a3
1 changed files with 2 additions and 2 deletions
|
@ -249,7 +249,7 @@ def list_semod():
|
|||
if semodule_version == 'new':
|
||||
mdata = __salt__['cmd.run']('semodule -lfull').splitlines()
|
||||
ret = {}
|
||||
for line in mdata[1:]:
|
||||
for line in mdata[0:]:
|
||||
if not line.strip():
|
||||
continue
|
||||
comps = line.split()
|
||||
|
@ -262,7 +262,7 @@ def list_semod():
|
|||
else:
|
||||
mdata = __salt__['cmd.run']('semodule -l').splitlines()
|
||||
ret = {}
|
||||
for line in mdata[1:]:
|
||||
for line in mdata[0:]:
|
||||
if not line.strip():
|
||||
continue
|
||||
comps = line.split()
|
||||
|
|
Loading…
Add table
Reference in a new issue