daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/app/models/host.rb b/app/models/host.rb
  2. index f48e143..12e7277 100644
  3. --- a/app/models/host.rb
  4. +++ b/app/models/host.rb
  5. @@ -5,8 +5,8 @@ class Host < Puppet::Rails::Host
  6.    has_many :host_classes, :dependent => :destroy
  7.    has_many :puppetclasses, :through => :host_classes
  8.    belongs_to :hostgroup
  9. -  has_many   :lookup_values, :finder_sql => %q(SELECT * FROM "lookup_values" WHERE
  10. -                             ("lookup_values"."match" = "fqdn=#{name}")),
  11. +  has_many   :lookup_values, :finder_sql => %q(SELECT * FROM lookup_values WHERE
  12. +                             (lookup_values.match = 'fqdn=#{name}')),
  13.                               :dependent => :destroy
  14.    has_many :reports, :dependent => :destroy
  15.    has_many :host_parameters, :dependent => :destroy, :foreign_key => :reference_id
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top