Project

General

Profile

« Previous | Next » 

Revision f0a61bda

Added by Ohad Levy about 12 years ago

  • ID f0a61bdaec853ea68cf82318c5bf5f6dc2127377

fixes #1533 - depreciate usage of puppetrun or a tftp server without a proxy

View differences:

app/models/host_observer.rb
class HostObserver < ActiveRecord::Observer
def after_destroy(host)
return true if Rails.env == "test" or host.puppetca?
return true unless Setting[:manage_puppetca]
GW::Puppetca.clean host.name
end
end

Also available in: Unified diff