Add raises note to disk_utils.get_disk_identifier
get_disk_identifier can raise OSError when the underlying method that is called, and hexdump is missing. Updating the docstring to convey it appropriately. Change-Id: Ia57bf10e40f89e095154b0d88d40b63d835de03a Related-Bug: #1732470
This commit is contained in:
parent
c5056c0f5d
commit
fcf7bbb518
@ -140,6 +140,7 @@ def get_disk_identifier(dev):
|
||||
http://www.syslinux.org/wiki/index.php/Comboot/chain.c32#mbr:
|
||||
|
||||
:param dev: Path for the already populated disk device.
|
||||
:raises OSError: When the hexdump binary is unavailable.
|
||||
:returns: The Disk Identifier.
|
||||
"""
|
||||
disk_identifier = utils.execute('hexdump', '-s', '440', '-n', '4',
|
||||
|
Loading…
Reference in New Issue
Block a user