Merge pull request #4 from s0undt3ch/hotfix/add-missing-yumpkg-funcs

Lint fixes
This commit is contained in:
Erik Johnson 2014-01-11 15:18:52 -08:00
commit 757b7756b5
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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: