fix PowerVM get_bootdisk_path docstring

The docstring for PowerVM's DiskAdapter.get_bootdisk_patch method was
giving incorrect information about its purpose and return value. This
fixes that.

Change-Id: I0a7658ac339dbc52f6bd6465d0e9bebcb75b8528
This commit is contained in:
Matthew Edmonds 2018-06-20 16:49:58 -04:00
parent 4938584f6b
commit d3e7bf2a50
1 changed files with 2 additions and 6 deletions

View File

@ -103,16 +103,12 @@ class DiskAdapter(object):
raise NotImplementedError()
def get_bootdisk_path(self, instance, vios_uuid):
"""Find scsi mappings on given VIOS for the instance.
This method finds all scsi mappings on a given vios that are associated
with the instance and disk_type.
"""Find the local path for the instance's boot disk.
:param instance: nova.objects.instance.Instance object owning the
requested disk.
:param vios_uuid: PowerVM UUID of the VIOS to search for mappings.
:return: Iterator of scsi mappings that are associated with the
instance and disk_type or None.
:return: Local path for instance's boot disk.
"""
vm_uuid = vm.get_pvm_uuid(instance)
match_func = self._disk_match_func(DiskType.BOOT, instance)