1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-08-25 21:49:29 +03:00

returns nil if local deployment file does not exists

git-svn-id: http://svn.opennebula.org/one/trunk@356 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
Rubén S. Montero
2009-02-12 20:44:27 +00:00
parent 8ed6fc404f
commit 9dc7194763

View File

@ -91,7 +91,9 @@ class VirtualMachineDriver < OpenNebulaDriver
m=remote_deployment_file.match(/.*?\/(\d+)\/images\/(deployment.\d+)$/)
local_deployment_file="#{var_location}#{m[1]}/#{m[2]}" if m
local_deployment_file = "#{var_location}#{m[1]}/#{m[2]}" if m
local_deployment_file = nil if !File.exists(local_deployment_file)
return local_deployment_file
end