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

feature #1112: improve debugging for one_datastore.rb

This commit is contained in:
Jaime Melis 2012-03-07 12:45:49 +01:00
parent d8cfa2eae6
commit 5ec865cb3c

View File

@ -83,9 +83,9 @@ class DatastoreDriver < OpenNebulaDriver
register_action(ACTION[:mkfs].to_sym, method("mkfs"))
end
############################################################################
############################################################################
# Image Manager Protocol Actions (generic implementation)
############################################################################
############################################################################
# TODO: Integrate this with TM
# def mv(id, ds, src, dst)
# do_image_action(id, ds, :mv, "'#{src}' '#{dst}' '#{id}'")
@ -112,7 +112,7 @@ class DatastoreDriver < OpenNebulaDriver
if @types.include?(ds)
return true
else
send_message(ACTION[action], RESULT[:failure], id,
send_message(ACTION[action], RESULT[:failure], id,
"Datastore driver '#{ds}' not available")
return false
end
@ -130,6 +130,8 @@ class DatastoreDriver < OpenNebulaDriver
result, info = get_info_from_execution(rc)
PP.pp([ACTION[action], result, id, info],STDERR)
send_message(ACTION[action], result, id, info)
end