From c1485551371155b6267f0774bd1cb794a9d2c19a Mon Sep 17 00:00:00 2001 From: Oleksandr Kyrylchuk Date: Tue, 21 Apr 2015 15:10:33 +0300 Subject: [PATCH] Fixed bug of usage of listing functions in CLI Reasons: - Some of functions provided by CLI ("list_*") crash Changes: - Added default value for "verbose" option in print_dict() function Change-Id: I00dfacf1e74ecc0fd44bb93fd4980a8504629ecc Closes-Bug: #1446567 --- cloudv_ostf_adapter/common/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudv_ostf_adapter/common/utils.py b/cloudv_ostf_adapter/common/utils.py index 4b0316a..05a26c4 100644 --- a/cloudv_ostf_adapter/common/utils.py +++ b/cloudv_ostf_adapter/common/utils.py @@ -42,7 +42,7 @@ def print_raw(d, verbose): print('') -def print_dict(d, verbose, property="Property"): +def print_dict(d, verbose=False, property="Property"): pt = prettytable.PrettyTable([property, 'Value'], caching=False) pt.align = 'l'