mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
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:
parent
ea45a87e52
commit
5716b06edd
@ -22,7 +22,7 @@ class NestDisplay(object):
|
|||||||
prefix,
|
prefix,
|
||||||
ret,
|
ret,
|
||||||
self.colors['ENDC'])
|
self.colors['ENDC'])
|
||||||
elif isinstance(ret, int):
|
elif isinstance(ret, (int, float)):
|
||||||
out += '{0}{1}{2}{3}{4}\n'.format(
|
out += '{0}{1}{2}{3}{4}\n'.format(
|
||||||
self.colors['YELLOW'],
|
self.colors['YELLOW'],
|
||||||
' ' * indent,
|
' ' * indent,
|
||||||
|
Loading…
Reference in New Issue
Block a user