Skip to content


Browse files Browse the repository at this point in the history
Raid controller and Physical Drive attributes need to be nullable
This can fail with
AttributeError: 'NoneType' object has no attribute 'strip'

Closes-Bug: #1550328
Change-Id: I8eafe606407cddc1e9ea03a33473b65ff3b59384
  • Loading branch information
anish committed Oct 20, 2016
1 parent 0cfeff4 commit 5804c28
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dracclient/resources/
Expand Up @@ -187,7 +187,8 @@ def _parse_drac_raid_controller(self, drac_controller):

def _get_raid_controller_attr(self, drac_controller, attr_name):
return utils.get_wsman_resource_attr(
drac_controller, uris.DCIM_ControllerView, attr_name)
drac_controller, uris.DCIM_ControllerView, attr_name,

def list_virtual_disks(self):
"""Returns the list of virtual disks
Expand Down Expand Up @@ -290,7 +291,7 @@ def _parse_drac_physical_disk(self, drac_disk):

def _get_physical_disk_attr(self, drac_disk, attr_name):
return utils.get_wsman_resource_attr(
drac_disk, uris.DCIM_PhysicalDiskView, attr_name)
drac_disk, uris.DCIM_PhysicalDiskView, attr_name, nullable=True)

def convert_physical_disks(self, physical_disks, raid_enable):
"""Converts a list of physical disks into or out of RAID mode.
Expand Down

0 comments on commit 5804c28

Please sign in to comment.