Revision 88e00c61

View differences:

src/vmm_mad/remotes/lib/vcenter_driver/datastore.rb
75 75
        image_path.sub!(/^\[#{ds_name}\] /, "")
76 76

  
77 77
        # Get image name
78
        file_name = File.basename(image_path).reverse.sub("kdmv.","").reverse
78
        file_name = File.basename(image_path).gsub(/\.vmdk$/,"")
79 79
        image_name = "#{file_name} - #{ds_name}"
80 80

  
81 81
        #Chek if the image has already been imported

Also available in: Unified diff