Fix splitting of role_attrs
This commit is contained in:
parent
81b476cd02
commit
7dd9f57e16
1 changed files with 1 additions and 1 deletions
|
@ -263,7 +263,7 @@ def user_alter(cursor, module, user, password, role_attr_flags, encrypted, expir
|
||||||
role_attr_flags_changing = False
|
role_attr_flags_changing = False
|
||||||
if role_attr_flags:
|
if role_attr_flags:
|
||||||
role_attr_flags_dict = {}
|
role_attr_flags_dict = {}
|
||||||
for r in role_attr_flags.split(','):
|
for r in role_attr_flags.split(' '):
|
||||||
if r.startswith('NO'):
|
if r.startswith('NO'):
|
||||||
role_attr_flags_dict[r.replace('NO', '', 1)] = False
|
role_attr_flags_dict[r.replace('NO', '', 1)] = False
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue