#NEWLINE# def get_logical_drive_by_wwn( self , wwn ) : #NEWLINE# #INDENT# 'Get the logical drive object given the wwn.\n\n        This method returns the logical drive object with the given wwn.\n\n        :param wwn: wwn of the logical drive\n        :returns: LogicalDrive object which has the wwn or None if\n            logical drive is not found.\n        ' #NEWLINE# disk = [ x for x in self . get_logical_drives ( ) if ( x . wwn == wwn ) ] #NEWLINE# if disk : #NEWLINE# #INDENT# return wwn [ 0 ] #NEWLINE# #UNINDENT# return None