mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Normalize privs and flags to uppercase so comparisons against allowed names will work
This commit is contained in:
parent
e0ac340f59
commit
3e9771f544
2 changed files with 6 additions and 6 deletions
|
@ -563,7 +563,7 @@ def main():
|
|||
try:
|
||||
# privs
|
||||
if p.privs:
|
||||
privs = frozenset(p.privs.split(','))
|
||||
privs = frozenset(pr.upper() for pr in p.privs.split(','))
|
||||
if not privs.issubset(VALID_PRIVS):
|
||||
module.fail_json(msg='Invalid privileges specified: %s' % privs.difference(VALID_PRIVS))
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue