From 075e9ca76ec67eb3b95fc068a60be1ee070114ed Mon Sep 17 00:00:00 2001 From: Shane Wang Date: Tue, 14 May 2013 11:21:08 +0800 Subject: [PATCH] Fix the default parameter in print_list Because sort_index = 0 by default, "if sort_index is not None" doesn't make any sense. Here sort_index should be None by default, which means "donot want to sort". Change-Id: I823ab75eb7a92bdc426dd96a3d1e56f187118729 Signed-off-by: Shane Wang --- novaclient/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/novaclient/utils.py b/novaclient/utils.py index 280bef0d2..47a59d152 100644 --- a/novaclient/utils.py +++ b/novaclient/utils.py @@ -141,7 +141,7 @@ def pretty_choice_list(l): return ', '.join("'%s'" % i for i in l) -def print_list(objs, fields, formatters={}, sortby_index=0): +def print_list(objs, fields, formatters={}, sortby_index=None): if sortby_index is None: sortby = None else: