Fix structured output bug (#36193)

This commit is contained in:
Mike Wiebe 2018-02-16 11:04:26 -05:00 committed by Trishna Guha
parent 3a5263a92f
commit ac169f5ffd

View file

@ -221,7 +221,10 @@ def parse_password(data):
def parse_roles(data):
configured_roles = None
if 'TABLE_role' in data:
configured_roles = data.get('TABLE_role')['ROW_role']
roles = list()
if configured_roles:
for item in to_list(configured_roles):