You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whimsical.apache.org by "Sebb (Jira)" <ji...@apache.org> on 2021/05/10 10:36:00 UTC

[jira] [Created] (WHIMSY-361) vhosttest.rb does not work in Puppet 6

Sebb created WHIMSY-361:
---------------------------

             Summary: vhosttest.rb does not work in Puppet 6
                 Key: WHIMSY-361
                 URL: https://issues.apache.org/jira/browse/WHIMSY-361
             Project: Whimsy
          Issue Type: Bug
            Reporter: Sebb


Puppet 6 changed the way functions are created, and the testwrapper no longer works.

I have updated the location by removing the 'Parser' path element, but the script now fails with:

$ ruby vhosttest.rb /puppet/infra-p6 
/puppet/infra-p6/modules/vhosts_whimsy/lib/puppet/functions/preprocess_vhosts.rb:1:in `<top (required)>': undefined method `create_function' for Puppet::Functions:Module (NoMethodError)

I can make that go away by defining an empty function 'create_function', but then I get:

vhosttest.rb:29:in `<main>': uninitialized constant Puppet::Functions::ApacheVHostMacros (NameError)

Not sure how to proceed.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)