From d3e7bf2a5012160bb0c6d802436cb743fee348bd Mon Sep 17 00:00:00 2001 From: Matthew Edmonds Date: Wed, 20 Jun 2018 16:49:58 -0400 Subject: 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 --- nova/virt/powervm/disk/driver.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'nova/virt/powervm') diff --git a/nova/virt/powervm/disk/driver.py b/nova/virt/powervm/disk/driver.py index 30b2f28f32..63765eefb4 100644 --- a/nova/virt/powervm/disk/driver.py +++ b/nova/virt/powervm/disk/driver.py @@ -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) -- cgit v1.2.1