@api_wrapper
def get_export(module, filesystem, system):
 export = None
 exports_to_list = system.exports.to_list()
 for e in exports_to_list:
  if (e.get_export_path() == module.params['name']):
   export = e
   break
 return export

@ api_wrapper def get_export ( module , filesystem , system ) : export = None exports_to_list = system . exports . to_list ( ) for e in exports_to_list : if ( e . get_export_path ( ) == module . params [ 'name' ] ) : export = e break return export
retrun export if found .