From 5716b06edd2adc5e3323a339a69889fdf3146fd6 Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Sat, 26 Jan 2013 15:29:59 -0600 Subject: [PATCH] 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. --- salt/output/nested.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/output/nested.py b/salt/output/nested.py index 5d90a69b0d..a23f43dfec 100644 --- a/salt/output/nested.py +++ b/salt/output/nested.py @@ -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,