@api_wrapper
def update_volume(module, volume):
 changed = False
 if module.params['size']:
  size = Capacity(module.params['size']).roundup((64 * KiB))
  if (volume.get_size() != size):
   if (not module.check_mode):
    volume.update_size(size)
   changed = True
 module.exit_json(changed=changed)

@ api_wrapper def update_volume ( module , volume ) : changed = False if module . params [ 'size' ] : size = Capacity ( module . params [ 'size' ] ) . roundup ( ( 64 * KiB ) ) if ( volume . get_size ( ) != size ) : if ( not module . check_mode ) : volume . update_size ( size ) changed = True module . exit_json ( changed = changed )
update volume .