Fix comparison

This commit is contained in:
Andrew Udvare 2015-06-19 06:04:56 -07:00
parent 5e5eec1806
commit e203087aaa

View file

@ -273,7 +273,7 @@ def emerge_packages(module, packages):
if p[flag]:
args.append(arg)
if 'usepkg' in p and 'usepkgonly' in p:
if p['usepkg'] and p['usepkgonly']:
module.fail_json(msg='Use only one of usepkg, usepkgonly')
cmd, (rc, out, err) = run_emerge(module, packages, *args)