puppet-generate-puppetfile icon indicating copy to clipboard operation
puppet-generate-puppetfile copied to clipboard

failure to parse Puppetfile when colon is used

Open logicminds opened this issue 6 years ago • 2 comments
trafficstars

When a Puppetfile contains the following syntax

mod 'stdlib',
  git: '[email protected]:puppetlabs/puppetlabs-stdlib',
  ref: '4.25.1'

And the command is run generate-puppetfile -p Puppetfile --fixtures-only --modulename jboss

The fixtures file does not contain the stdlib module.

logicminds avatar Aug 07 '19 21:08 logicminds

Can you provide a gist showing the full Puppetfile before and after, or at least the relevant section?

rnelson0 avatar Aug 07 '19 23:08 rnelson0

Is there something wrong with the relevant section I posted above?

In essence your regex only searches for hash rockets and doesn't parse colons.

logicminds avatar Aug 07 '19 23:08 logicminds