mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-14 16:53:12 +09:00
This commit is contained in:
1 parent
caa8ed3a81
commit
bc4378105b
1 file changed
+1
-4
@@ -92,16 +92,13 @@ class Storage
|
||||
VCenterDriver::VIHelper.check_opts(opts, [:persistent])
|
||||
|
||||
ds_name = disk[:datastore].name
|
||||
image_path = disk[:path]
|
||||
image_path = disk[:path_wo_ds]
|
||||
image_type = disk[:type]
|
||||
image_prefix = disk[:prefix]
|
||||
|
||||
one_image = {}
|
||||
one_image[:template] = ""
|
||||
|
||||
# Remove ds info from path
|
||||
image_path.sub!(/^\[#{ds_name}\] /, "")
|
||||
|
||||
# Get image name
|
||||
file_name = File.basename(image_path).gsub(/\.vmdk$/,"")
|
||||
|
||||
|
||||
Reference in new issue
Block a user