puppet-gluster icon indicating copy to clipboard operation
puppet-gluster copied to clipboard

Use structured-facts for array values instead of joining them by ,

Open coder-hugo opened this issue 8 years ago • 6 comments

This PR converts all custom facts that contain array values from string to structured-facts. Btw. this PR will conflict with #118 as both are touching line 31 of lib/facts/gluster.rb. This PR just touches this line as the peer_list fact is already joined within the "calculation" code and not like for the others in the Facter.add section. If #118 will be merged first I'll rebase the PR and fix the merge conflict.

coder-hugo avatar May 04 '17 12:05 coder-hugo

Looks good to me, but I'm not in a position to actually test it. I'll have an ask around for volunteers. Have you been using this branch yourself?

alexjfisher avatar May 16 '17 19:05 alexjfisher

At the moment we are using the fix-port-facts branch for our setup. This is a combination of this PR and #118. And it works pretty well.

coder-hugo avatar May 17 '17 07:05 coder-hugo

Should this create a complex $facts['gluster'] fact hash not to change existing facts? It'd be a breaking change for users and I like the nesting when it makes sense.

ekohl avatar Jan 02 '18 15:01 ekohl

I agree with @ekohl. @coder-hugo can you please take a look at the suggestions?

bastelfreak avatar Mar 28 '18 19:03 bastelfreak

Dear @coder-hugo, thanks for the PR!

This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?

You can find my sourcecode at voxpupuli/vox-pupuli-tasks

vox-pupuli-tasks[bot] avatar Jan 05 '20 13:01 vox-pupuli-tasks[bot]

Dear @coder-hugo, thanks for the PR!

This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?

You can find my sourcecode at voxpupuli/vox-pupuli-tasks

vox-pupuli-tasks[bot] avatar Jan 05 '20 18:01 vox-pupuli-tasks[bot]