Bug #1770

Rundeckfacts "undefined method fact"

Added by Hannes Schaller 11 months ago. Updated 4 months ago.

Status:New Start:07/23/2012
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:-
Target version:-
Backlog:No Difficulity:
Votes: 1 (View)

Description

Hello!

When I add "rundeckfacts" = "is_virtual" to the Global Paramaters, the Rundeck YML download breaks with the following error:

Failed to fetch rundeck info for myserver.at.internal: undefined method `fact' for #<Host:0x7fec3ad4c1e0>

The problem seems to be on http://theforeman.org/projects/foreman/repository/revisions/develop/entry/app/models/host.rb#L574

Unfortunately due to my lack of Rails Know-How I am not able to provide a patch for now.

Thanks in advance!

History

Updated by Markus Nussdorfer 4 months ago

Hi

having the same issue here.

Im not a dev, but following line
rdecktags += self.params["rundeckfacts"].split(",").map{|rdf| "#{rdf}=#{fact(rdf)[0].value}"}

Also available in: Atom PDF