Skip to content

Commit

Permalink
Solved ticket #65. Patch submited by Soren Hansen
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.opennebula.org/one/trunk@306 3034c82b-c49b-4eb3-8279-a7acafdc01c0
  • Loading branch information
jfontan committed Jan 19, 2009
1 parent fbd02a1 commit 154ad3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tm_mad/TMScript.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ def initialize(script_text, logger=nil)
# Returns an array where first element tells if succeded and the
# second one is the error message in case of failure.
def execute(plugin)
return [true,""] if @lines.empty?

result=@lines.each {|line|
res=plugin.execute(@logger, *line)
if !res
Expand Down

0 comments on commit 154ad3d

Please sign in to comment.