L #~: linting vcenter driver (#665)

Signed-off-by: Carlos Herrera <cherrera@opennebula.io>
This commit is contained in:
Carlos J. Herrera authored and GitHub committed 2021-01-18 19:03:49 +01:00
1 parent c67652ac04
commit ebe4aa1ece
2 files changed
+2 -2

No files matched your search

@@ -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