@api_wrapper
def get_volume(module, system):
 try:
  return system.volumes.get(name=module.params['name'])
 except:
  return None

@ api_wrapper def get_volume ( module , system ) : try : return system . volumes . get ( name = module . params [ 'name' ] ) except : return None
return volume or none .