mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #3468 from archtaku/quickfix
Fix bug in nested outputter when displaying floats
This commit is contained in:
commit
474e1675e9
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user