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
This commit is contained in:
Matthew Farrellee
2014-01-14 11:45:14 -05:00
parent 6f0b512a4a
commit 5a8808b4d2

View File

@@ -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