File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -173,10 +173,13 @@ def _bw_table(bw_data):
173
173
174
174
175
175
def _system_table (system_data ):
176
- table = formatting .Table (['Type' , 'name' ])
176
+ table = formatting .Table (['Type' , 'Name' ])
177
+ table .align ['Type' ] = 'r'
178
+ table .align ['Name' ] = 'l'
179
+ table .sortby = 'Type'
177
180
for system in system_data :
178
- table . add_row ([ utils .lookup (system , 'hardwareComponentModel' ,
179
- 'hardwareGenericComponentModel' ,
180
- 'hardwareComponentType ' , 'keyName' ),
181
- utils . lookup ( system , 'hardwareComponentModel' , 'longDescription' ) ])
181
+ c_type = utils .lookup (system , 'hardwareComponentModel' , 'hardwareGenericComponentModel ' ,
182
+ 'hardwareComponentType' , 'keyName' )
183
+ c_name = utils . lookup ( system , 'hardwareComponentModel ' , 'longDescription' )
184
+ table . add_row ([ c_type , c_name ])
182
185
return table
You can’t perform that action at this time.
0 commit comments