From 5a8808b4d2f960adb48c3e52f1eda4a970772434 Mon Sep 17 00:00:00 2001 From: Matthew Farrellee Date: Tue, 14 Jan 2014 11:45:14 -0500 Subject: [PATCH] Force wrap line for cluster-show This makes the cluster-show details mostly readable. Work still needs to be done to format it more cleanly. Change-Id: I04f42ad95c53fddccc7ffaf43142f28a6c554f4a --- savannaclient/api/shell.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/savannaclient/api/shell.py b/savannaclient/api/shell.py index 56972549..738d5cb5 100644 --- a/savannaclient/api/shell.py +++ b/savannaclient/api/shell.py @@ -216,7 +216,8 @@ def do_cluster_show(cs, args): """Show details of a cluster.""" cluster = cs.clusters.get(args.id) # TODO(mattf): Make this pretty, e.g format node_groups and info urls - utils.print_dict(cluster._info) + # Forcing wrap=47 allows for clean display on a terminal of width 80 + utils.print_dict(cluster._info, wrap=47) # TODO(mattf): Add --name