Beautify: strip common suffix from names
authorIustin Pop <iustin@google.com>
Mon, 9 Mar 2009 20:37:39 +0000 (21:37 +0100)
committerIustin Pop <iustin@google.com>
Mon, 9 Mar 2009 20:37:39 +0000 (21:37 +0100)
commita0529a64418799bb774ec31dbcd962443f8f5d31
tree69de3b3a3c652171852226a4c28d6d4425613c05
parentd6109e648212c03f268518a401b667c5c1d60148
Beautify: strip common suffix from names

This patch automatically removes the longest common (domain, i.e.
starting with a dot) suffix from the node and instance names. This gives
a much clearer display, and this format is compatible with the way
Ganeti accepts shortened names.
src/Cluster.hs
src/hbal.hs
src/hn1.hs