#NEWLINE# def get_controller_by_id( self , id ) : #NEWLINE# #INDENT# "Get the controller object given the id.\n\n        This method returns the controller object for given id.\n\n        :param id: id of the controller, for example\n            'Smart Array P822 in Slot 2'\n        :returns: Controller object which has the id or None if the\n            controller is not found.\n        " #NEWLINE# for controller in controller . controllers : #NEWLINE# #INDENT# if ( controller . id == id ) : #NEWLINE# #INDENT# return controller #NEWLINE# #UNINDENT# #UNINDENT# return None