Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With Puppet 6 it is unable to use volume with dash in name #214

Closed
scornelissen85 opened this issue Apr 14, 2020 · 0 comments · Fixed by #215
Closed

With Puppet 6 it is unable to use volume with dash in name #214

scornelissen85 opened this issue Apr 14, 2020 · 0 comments · Fixed by #215

Comments

@scornelissen85
Copy link
Contributor

scornelissen85 commented Apr 14, 2020

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.x
  • Ruby: embedded with Puppet
  • Distribution: RedHat
  • Module version: 5.0.

How to reproduce (e.g Puppet code you use)

We use gluster::volume with title myname-vol1. Puppet code will fail because the dash is not allowed as variable. This issue exists since Puppet 6 because getvar() was before Puppet 6 from stdlib. In Puppet 6 it's a build in function.

The error will occur with a puppet run. The catalog failed to compile and an error message will be shown.

What are you seeing

This error message will appear:

The given string does not start with a valid variable name

What behaviour did you expect instead

A valid puppet run.

Output log

The given string does not start with a valid variable name

Any additional information you'd like to impart

I would like that title of gluster::volume would not be used to retrieve fact variable. I will try tomorrow to create a PR when I fixed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant