Revision 49b897fc src/onedb/fsck.rb

View differences:

src/onedb/fsck.rb
1241 1241

  
1242 1242
                calculate_quotas(doc, "uid=#{row[:oid]}", "User")
1243 1243

  
1244
                doc.root.xpath('//text()[not(normalize-space())]').remove
1245 1244
                @db[:user_pool].insert(
1246 1245
                    :oid        => row[:oid],
1247 1246
                    :name       => row[:name],
1248
                    :body       => doc.root.serialize(:save_with => 0),
1247
                    :body       => doc.root.to_s,
1249 1248
                    :uid        => row[:oid],
1250 1249
                    :gid        => row[:gid],
1251 1250
                    :owner_u    => row[:owner_u],
......
1278 1277

  
1279 1278
                calculate_quotas(doc, "gid=#{row[:oid]}", "Group")
1280 1279

  
1281
                doc.root.xpath('//text()[not(normalize-space())]').remove
1282 1280
                @db[:group_pool].insert(
1283 1281
                    :oid        => row[:oid],
1284 1282
                    :name       => row[:name],
1285
                    :body       => doc.root.serialize(:save_with => 0),
1283
                    :body       => doc.root.to_s,
1286 1284
                    :uid        => row[:oid],
1287 1285
                    :gid        => row[:gid],
1288 1286
                    :owner_u    => row[:owner_u],

Also available in: Unified diff