|
|
|
@ -64,7 +64,8 @@ Video = collections.namedtuple(
|
|
|
|
|
|
|
|
|
|
System = collections.namedtuple( |
|
|
|
|
'System', |
|
|
|
|
['id', 'lcc_version', 'model', 'service_tag', 'uuid']) |
|
|
|
|
['id', 'lcc_version', 'model', 'service_tag', 'uuid', |
|
|
|
|
'last_system_inventory_time']) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class InventoryManagement(object): |
|
|
|
@ -252,7 +253,9 @@ class InventoryManagement(object):
|
|
|
|
|
service_tag=self._get_system_attr(drac_system, 'ServiceTag'), |
|
|
|
|
model=self._get_system_attr(drac_system, 'Model'), |
|
|
|
|
lcc_version=self._get_system_attr(drac_system, |
|
|
|
|
'LifecycleControllerVersion')) |
|
|
|
|
'LifecycleControllerVersion'), |
|
|
|
|
last_system_inventory_time=self._get_system_attr( |
|
|
|
|
drac_system, 'LastSystemInventoryTime').split('.')[0]) |
|
|
|
|
|
|
|
|
|
def _get_system_attr(self, drac_system, attr_name): |
|
|
|
|
return utils.get_wsman_resource_attr(drac_system, |
|
|
|
|