Merge "Raid controller and Physical Drive attributes need to be nullable"

This commit is contained in:
Jenkins 2016-11-02 17:46:06 +00:00 committed by Gerrit Code Review
commit 1cf414b26e
1 changed files with 3 additions and 2 deletions

View File

@ -190,7 +190,8 @@ class RAIDManagement(object):
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,
nullable=True)
def list_virtual_disks(self):
"""Returns the list of virtual disks
@ -293,7 +294,7 @@ class RAIDManagement(object):
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.