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

Use $fact to retrieve fact #215

Merged
merged 1 commit into from
Oct 19, 2020
Merged

Use $fact to retrieve fact #215

merged 1 commit into from
Oct 19, 2020

Conversation

scornelissen85
Copy link
Contributor

Pull Request (PR) description

It will use the Puppet variable $fact to retrieve a fact name. Before this change, it used getvar() and in Puppet 6 the build-in getvar() is used which don't support a dash - in it's variable name. We had the challenge with migration to Puppet 6 this code failed because we have a volume with the name test-vol1 (with a dash). With this change the Puppet code will build a catalog on Puppet 6. A fact may actually contain a dash and getvar() shouldn't be used for getting a fact variable.

This Pull Request (PR) fixes the following issues

Fixes #214

@glorpen
Copy link
Contributor

glorpen commented Aug 14, 2020

@scornelissen85 I've tried this PR and for hash access there should be no :: in "::gluster_volume_${title}_bricks", currently if with $already_exists is not executed because of undef value.

@scornelissen85
Copy link
Contributor Author

You're right, I will change that.

@glorpen glorpen mentioned this pull request Aug 20, 2020
@ekohl
Copy link
Member

ekohl commented Aug 27, 2020

Looks good, but needs a rebase to fix the merge conflict. Mind also squashing the commits while you're at it?

@ekohl
Copy link
Member

ekohl commented Aug 28, 2020

Well, I just merged #219 and of course that also introduced merge conflicts. Sorry.

@rwaffen
Copy link
Sponsor Member

rwaffen commented Oct 19, 2020

Hi everyone...

the tests seem to be all green, can we hope to have a merge in the next time then? ;-)
Waiting for this change :-)

Greetings, Robert

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like I missed the updated commit. Thanks!

@ekohl ekohl merged commit 1a8c1cd into voxpupuli:master Oct 19, 2020
@ekohl ekohl added the bug Something isn't working label Oct 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

With Puppet 6 it is unable to use volume with dash in name
5 participants