mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Strip white space to support multiline permissions in YAML
This commit is contained in:
@@ -277,8 +277,8 @@ def privileges_unpack(priv):
|
|||||||
not specified in the string, as MySQL will always provide this by default.
|
not specified in the string, as MySQL will always provide this by default.
|
||||||
"""
|
"""
|
||||||
output = {}
|
output = {}
|
||||||
for item in priv.split('/'):
|
for item in priv.strip().split('/'):
|
||||||
pieces = item.split(':')
|
pieces = item.strip().split(':')
|
||||||
if '.' in pieces[0]:
|
if '.' in pieces[0]:
|
||||||
pieces[0] = pieces[0].split('.')
|
pieces[0] = pieces[0].split('.')
|
||||||
for idx, piece in enumerate(pieces):
|
for idx, piece in enumerate(pieces):
|
||||||
|
|||||||
Reference in New Issue
Block a user