more fixes

This commit is contained in:
Solvik Blum 2019-08-03 23:57:36 +02:00
commit eaaf565b37
No known key found for this signature in database
GPG key ID: CC12B3DC262B6C47
6 changed files with 14 additions and 14 deletions

View file

@ -6,11 +6,11 @@ class DellHost(ServerBase):
return self.get_product_name().startswith('PowerEdge M')
def get_blade_slot(self):
'''
"""
Return blade slot
dmidecode output is:
` Location In Chassis: Slot 03`
'''
"""
if self.is_blade():
return int(self.dmi.get_by_type('Baseboard')[0].get('Location In Chassis').split()[1])
return None