Ask Your Question

Using Facter.add gives me "Syntax error at '.' <modulename>:4

asked 2018-08-15 17:52:26 -0600

winterstoirm gravatar image

Trying to define a custom fact starting with

require 'facter'

# Custom fact to see if the long path exists
Facter.add(:LongPath) do

and I keep getting a message about a syntax error at the "." in my Facter.add statement

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-08-27 11:53:28 -0600

binford2k gravatar image

Without the actual error, all I can do is point you at the custom fact documentation which explains how to create the fact.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2018-08-15 17:52:26 -0600

Seen: 49 times

Last updated: Aug 27