diff options
author | Matthew Edmonds <edmondsw@us.ibm.com> | 2018-06-20 16:49:58 -0400 |
---|---|---|
committer | Matthew Edmonds <edmondsw@us.ibm.com> | 2018-06-20 16:49:58 -0400 |
commit | d3e7bf2a5012160bb0c6d802436cb743fee348bd (patch) | |
tree | 052932c89acc816f8ff962804c1624bc1afa64c2 /nova/virt/powervm | |
parent | 4938584f6b6cb59c52194b83eac4e4c4371677ff (diff) | |
download | nova-d3e7bf2a5012160bb0c6d802436cb743fee348bd.tar.gz |
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
Diffstat (limited to 'nova/virt/powervm')
-rw-r--r-- | nova/virt/powervm/disk/driver.py | 8 |
1 files changed, 2 insertions, 6 deletions
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) |