From 8396c063a37737f4cca55eab40b8456e18435a45 Mon Sep 17 00:00:00 2001 From: Andrew Shults Date: Tue, 9 Dec 2014 17:14:16 -0500 Subject: [PATCH] Strip white space to support multiline permissions in YAML --- database/mysql/mysql_user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/mysql/mysql_user.py b/database/mysql/mysql_user.py index eca83dc2f7c..0ba049fc505 100644 --- a/database/mysql/mysql_user.py +++ b/database/mysql/mysql_user.py @@ -277,8 +277,8 @@ def privileges_unpack(priv): not specified in the string, as MySQL will always provide this by default. """ output = {} - for item in priv.split('/'): - pieces = item.split(':') + for item in priv.strip().split('/'): + pieces = item.strip().split(':') if '.' in pieces[0]: pieces[0] = pieces[0].split('.') for idx, piece in enumerate(pieces):