Fix structured output bug (#36193)

pull/36316/head
Mike Wiebe 7 years ago committed by Trishna Guha
parent 3a5263a92f
commit ac169f5ffd

@ -221,7 +221,10 @@ def parse_password(data):
def parse_roles(data):
configured_roles = data.get('TABLE_role')['ROW_role']
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):

Loading…
Cancel
Save