Fix wrong resource name in debug string

For DS monitor vCenter probe

(cherry picked from commit fc9cb76090)
This commit is contained in:
Tino Vazquez committed 2018-01-19 17:04:17 +01:00
1 parent 88f56cf508
commit 88013d00bb
1 file changed
+2 -2
+2 -2
View File
@@ -44,7 +44,7 @@ ds_ref = drv_action["/DS_DRIVER_ACTION_DATA/DATASTORE/TEMPLATE/VCENTER_DS_REF"]
check_valid ds_ref, "ds_ref"
if ds_id.nil? || ds_ref.nil?
STDERR.puts "Not enough information to monitor the image."
STDERR.puts "Not enough information to monitor the datastore."
exit -1
end
@@ -55,7 +55,7 @@ begin
puts storage.monitor
rescue Exception => e
message = "Error monitoring host #{id}."\
message = "Error monitoring datastore #{id}."\
" Reason: \"#{e.message}\"\n#{e.backtrace}"
STDERR.puts error_message(message)
exit -1