mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
L #~: linting vcenter driver (#665)
Signed-off-by: Carlos Herrera <cherrera@opennebula.io>
This commit is contained in:
parent
c67652ac04
commit
ebe4aa1ece
@ -62,7 +62,7 @@ rescue StandardError => e
|
||||
" from datastore #{ds_id} "\
|
||||
"Reason: \"#{e.message}\"}"
|
||||
if VCenterDriver::CONFIG[:debug_information]
|
||||
STDERR.puts "#{e.backtrace}"
|
||||
STDERR.puts e.backtrace.to_s
|
||||
end
|
||||
exit(-1)
|
||||
ensure
|
||||
|
@ -56,7 +56,7 @@ module VCenterDriver
|
||||
|
||||
# REMOVE: no need to change...
|
||||
def self.get_img_name_from_path(path, vm_id, disk_id)
|
||||
# Note: This will probably fail if the basename contains '.'
|
||||
# NOTE: This will probably fail if the basename contains '.'
|
||||
"#{path.split('.').first}-#{vm_id}-#{disk_id}.vmdk"
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user