feature #1685: Fix bug in dummy driver

This commit is contained in:
Ruben S. Montero committed 2013-01-21 18:01:27 +01:00
1 parent 35f44b0708
commit 04dec2c332
1 file changed
+2 -2
+2 -2
View File
@@ -211,10 +211,10 @@ class DummyDriver < VirtualMachineDriver
case result[0]
when "success", 1, "1"
sleep result[1].to_io if result[1]
sleep result[1].to_i if result[1]
return RESULT[:success]
when "failure", 0, "0"
sleep result[1].to_io if result[1]
sleep result[1].to_i if result[1]
return RESULT[:failure]
when "-"
return nil