You forgot the question mark, did you? Or maybe I did in the previous mail, anyway its really this:
respond_to?(:reports) https://ruby-doc.org/core-2.4.1/Object.html#method-i-respond_to-3F LZ On Fri, May 19, 2017 at 8:47 PM, Konstantin Orekhov <[email protected]> wrote: > >> unless new_host && hostgroup.nil? && respond_to?(:reports) && >> reports.empty? >> > > Well, that's what I was trying to tell you - this patch did not work for me. > I tried it out as you suggested on May 3rd, the only difference it made is > the error message changed from > > Discovered by URL: https://foreman.domain.com > Registering host with Foreman (https://foreman.domain.com) > Response from Foreman 422: {"message":"undefined local variable or method > `reports' for #\u003cHost::Discovered:0x007f0a485be538\} > > to > > Discovered by URL: https://spc.vip > Registering host with Foreman (https://spc.vip) > Response from Foreman 422: {"message":"undefined method `respond_to' for > #\u003cHost::Discovered:0x007f102410e8a8\u003e"} > > So, only a complete removal of that RPM helped me so far. > -- Later, Lukas @lzap Zapletal -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
