1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-10 13:57:22 +03:00

feature #595: change image driver to use new mad libraries

This commit is contained in:
Javi Fontan 2011-06-13 15:42:33 +02:00
parent dd92014d5a
commit df6b4c305c

View File

@ -50,8 +50,14 @@ class ImageDriver < OpenNebulaDriver
}
# Register default actions for the protocol
def initialize(fs_type, concurrency=10, threaded=true)
super(concurrency,threaded,0)
def initialize(fs_type, options={})
@options={
:concurrency => 10,
:threaded => true,
:retries => 0
}.merge!(options)
super('', @options)
@actions_path = "#{VAR_LOCATION}/remotes/image/#{fs_type}"
@ -106,5 +112,5 @@ else
exit(-1)
end
image_driver = ImageDriver.new(fs_type, threads)
image_driver = ImageDriver.new(fs_type, :concurrency => threads)
image_driver.start_driver