#NEWLINE# def get_rdm_disk( hardware_devices , uuid ) : #NEWLINE# #INDENT# 'Gets the RDM disk key.' #NEWLINE# if ( hardware_devices . __class__ . __name__ == 'ArrayOfVirtualDevice' ) : #NEWLINE# #INDENT# hardware_devices = hardware_devices . VirtualDevice #NEWLINE# #UNINDENT# for device in hardware_devices : #NEWLINE# #INDENT# if ( ( device . __class__ . __name__ == 'VirtualDisk' ) and ( device . backing . __class__ . __name__ == 'VirtualDiskRawDiskMappingVer1BackingInfo' ) and ( device . backing . lunUuid == uuid ) ) : #NEWLINE# #INDENT# return device