Fix variable names in Loader.assignIndices
authorGuido Trotter <ultrotter@google.com>
Sat, 1 Dec 2012 07:43:32 +0000 (08:43 +0100)
committerGuido Trotter <ultrotter@google.com>
Mon, 3 Dec 2012 11:35:32 +0000 (12:35 +0100)
commit07ac4aaf665062beed5abc82af788ff620c3a69d
tree456885bd0d7ad1dc48c6211c52eb8fdb6d4f2244
parent00457f03b11fef477d8b0a85aa2b3f366282e3bd
Fix variable names in Loader.assignIndices

This function can be applied to any type of class "Element" but its
internal variables used to refer to a list of tuples containing these
elements and their names as "nodes". Moreover it built a list of name to
indices tuples referring to it as "na" (which is not very clear).

Thus nodes becomes name_element, and na name_idx.

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
htools/Ganeti/HTools/Loader.hs