mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-07 11:13:10 +00:00
Fix comparison
This commit is contained in:
@@ -275,7 +275,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)
|
||||
|
||||
Reference in New Issue
Block a user