Fix Table display function

This provides a fix to the table display function so it only iterates on
the provided columns, instead of the entire dictionary, which could
cause an exception on prior versions.

Signed-off-by: Justin Thaler thalerj@us.ibm.com
diff --git a/thalerj/openbmctool.py b/thalerj/openbmctool.py
index f77136b..f21fd13 100644
--- a/thalerj/openbmctool.py
+++ b/thalerj/openbmctool.py
@@ -221,7 +221,7 @@
     output_keys.sort(key=naturalSort)
     for key in output_keys:
         row = ""
-        for i in range(len(output[key])):
+        for i in range(len(keylist)):
             if (i != 0): row = row + "| "
             row = row + output[key][keylist[i]].ljust(colWidth[i])
         outputText += row + "\n"