Fix bug in nested outputter when displaying floats

Just a simple fix for a bug that was keeping floating-point numbers from
showing up in the new nested outputter.
This commit is contained in:
Erik Johnson 2013-01-26 15:29:59 -06:00
parent ea45a87e52
commit 5716b06edd

View File

@ -1,5 +1,5 @@
'''
Recursively display nested data, this is the default outputter.
Recursively display nested data, this is the default outputter.
'''
# Import salt libs
@ -22,7 +22,7 @@ class NestDisplay(object):
prefix,
ret,
self.colors['ENDC'])
elif isinstance(ret, int):
elif isinstance(ret, (int, float)):
out += '{0}{1}{2}{3}{4}\n'.format(
self.colors['YELLOW'],
' ' * indent,