mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Fix #3592
This commit is contained in:
parent
7a9b209e01
commit
4c9ecfd674
@ -40,7 +40,14 @@ class NestDisplay(object):
|
||||
self.colors['ENDC'])
|
||||
elif isinstance(ret, list) or isinstance(ret, tuple):
|
||||
for ind in ret:
|
||||
out = self.display(ind, indent, '- ', out)
|
||||
if isinstance(ind, list) or isinstance(ind, tuple):
|
||||
out += '{0}{1}|_{2}\n'.format(
|
||||
self.colors['GREEN'],
|
||||
' ' * indent,
|
||||
self.colors['ENDC'])
|
||||
out = self.display(ind, indent + 2, '- ', out)
|
||||
else:
|
||||
out = self.display(ind, indent, '- ', out)
|
||||
elif isinstance(ret, dict):
|
||||
if indent:
|
||||
out += '{0}{1}{2}{3}\n'.format(
|
||||
|
Loading…
Reference in New Issue
Block a user