Project

General

Profile

« Previous | Next » 

Revision 53a897af

Added by Marc Dequènes almost 14 years ago

  • ID 53a897af59b85dd310838968c12e5c6ba54c9f44

[fix] don't set command result before every action is done to avoid returning SUCCESS when an exception is raised

View differences:

lib/cyborghood/command_runner.rb
end
srv_dns = Services::DNS.new(zone)
zone_content = srv_dns.read_zone
result.ok = true
result.message = _("Requested zone content attached.")
zone_ref = {:content => srv_dns.read_zone, :filename => "dnszone_#{zone}.txt"}.to_ostruct
zone_ref = {:content => zone_content, :filename => "dnszone_#{zone}.txt"}.to_ostruct
result.refs = [zone_ref]
end
when "SET"

Also available in: Unified diff