Revision a39d1529 src/sunstone/routes/vcenter.rb

View differences:

src/sunstone/routes/vcenter.rb
379 379
            error 404, error.to_json
380 380
        end
381 381

  
382
        # clean vcenterDriver cache
383
        VCenterDriver::VIHelper.clean_ref_hash("TEMPLATE/VCENTER_CCR_REF")
382 384
        networks = dc_folder.get_unimported_networks(npool,vcenter_client.vim.host,hpool)
383 385

  
384 386
        if networks.nil?
......
453 455
            error 404, error.to_json
454 456
        end
455 457

  
458
        # clean vcenterDriver cache
459
        VCenterDriver::VIHelper.clean_ref_hash("TEMPLATE/VCENTER_CCR_REF")
456 460
        datastores = dc_folder.get_unimported_datastores(dpool, vcenter_client.vim.host, hpool)
457 461
        if datastores.nil?
458 462
            msg = "No datacenter found"

Also available in: Unified diff