@api_wrapper
def create_filesystem(module, system):
 if (not module.check_mode):
  filesystem = system.filesystems.create(name=module.params['name'], pool=get_pool(module, system))
  if module.params['size']:
   size = Capacity(module.params['size']).roundup((64 * KiB))
   filesystem.update_size(size)
 module.exit_json(changed=True)

@ api_wrapper def create_filesystem ( module , system ) : if ( not module . check_mode ) : filesystem = system . filesystems . create ( name = module . params [ 'name' ] , pool = get_pool ( module , system ) ) if module . params [ 'size' ] : size = Capacity ( module . params [ 'size' ] ) . roundup ( ( 64 * KiB ) ) filesystem . update_size ( size ) module . exit_json ( changed = True )
create filesystem .