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

grains.items vs. pillar.data #4109

Closed
rca opened this issue Mar 14, 2013 · 8 comments
Closed

grains.items vs. pillar.data #4109

rca opened this issue Mar 14, 2013 · 8 comments
Assignees

Comments

@rca
Copy link
Contributor

rca commented Mar 14, 2013

I'm still a n00b, mind you, but I always have to try pillar.items or grains.data before correctly choosing pillar.data and grains.items.

Any thoughts on normalizing the namespace so that there is parity between these and a user can make an intuitive leap between the two? I would vote for pillar.items and grains.items since the term items feels friendlier.

@ghost ghost assigned terminalmage Mar 17, 2013
@terminalmage
Copy link
Contributor

I like this.

@thatch45 I took the liberty of creating two different fixes for this. Let me know which you prefer.

Option 1: Rename pillar.data to pillar.items. All refs to pillar.data (even in tests) are updated, with pillar.data added as a function reference to pillar.items. pillar.data hidden from sphinx to prevent duplicates in the docs.

Option 2: The path of lesser resistance (and the one which I'm guessing you'll prefer). pillar.items added as a function reference to pillar.data. pillar.items hidden from sphinx to prevent duplicates in the docs.

@rca
Copy link
Contributor Author

rca commented Mar 19, 2013

@terminalmage, this is awesome, thanks! I like option 1. 😉

@thatch45
Copy link
Contributor

Hmm, I am leaning towards leaving it data, since pillar is not as flat as grains. If anything I would lean on option 2.

@terminalmage
Copy link
Contributor

@thatch45 Yeah, I like #2 more as well. Shall I submit that branch as a pull req?

@rca keep in mind that either way, pillar.items would work.

@thatch45
Copy link
Contributor

Yes, lets do option 2

@thatch45
Copy link
Contributor

BTW, you ever look at issue #2? This is not the first time it has been referenced, very funny!

@terminalmage
Copy link
Contributor

Haha, that is awesome. Didn't even think of that when I made that comment.

@rca
Copy link
Contributor Author

rca commented Mar 19, 2013

Awesome, thanks!

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

No branches or pull requests

3 participants