mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Merge pull request #4 from s0undt3ch/hotfix/add-missing-yumpkg-funcs
Lint fixes
This commit is contained in:
commit
757b7756b5
@ -62,7 +62,7 @@ def list_pkgs(*packages):
|
||||
cmd = 'rpm -q --qf \'%{{NAME}} %{{VERSION}}\\n\' {0}'.format(
|
||||
' '.join(packages)
|
||||
)
|
||||
out = __salt__['cmd.run'](cmd, output_loglevel='debug'):
|
||||
out = __salt__['cmd.run'](cmd, output_loglevel='debug')
|
||||
for line in out.splitlines():
|
||||
if 'is not installed' in line:
|
||||
errors.append(line)
|
||||
|
@ -836,7 +836,7 @@ def group_list():
|
||||
else:
|
||||
line = out[idx].strip()
|
||||
try:
|
||||
name, lang = re.match('(.+) \[(.+)\]', line).groups()
|
||||
name, lang = re.match(r'(.+) \[(.+)\]', line).groups()
|
||||
except AttributeError:
|
||||
pass
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user