I'm currently trying to rewrite some tools in python, the only challenge is that I'm limited to Python 2.4.
The current output from the bash version looks like this:
Host Active VMs SW Ver Processor Cores Mhz Tot Mem Free Mem Network
cloudmatt1 1 XenServer 1.8.0 GenuineIntel 2 2660.040 5.45G 3.57G openvswitch
cloudmatt2 3 XenServer 1.8.0 GenuineIntel 2 2660.046 5.45G 1.55G openvswitch
Here is my example dictionary:
{'d50787a5-9187-4486-9d36-e8287701bcbd': {'UUID': 'd50787a5-9187-4486-9d36-e8287701bcbd', 'Network-Backend': 'openvswitch', 'Platform-Version': '1.8.0', 'Host-CPUs': 2, 'Name-label': 'cloudmatt1', 'Resident-VMs': 2}, 'e9e54df0-ab87-4e68-a604-2e1821ce2da9': {'UUID': 'e9e54df0-ab87-4e68-a604-2e1821ce2da9', 'Network-Backend': 'openvswitch', 'Platform-Version': '1.8.0', 'Host-CPUs': 2, 'Name-label': 'cloudmatt2', 'Resident-VMs': 4}}
How could I display the data in a similar fashion with Python 2.4?