Repository navigation
Update state.module docs - #52420
Update state.module docs#52420
Conversation
Hopefully this should be easier to grok, as well as more obvious that the documentation contains two styles.
|
If one is a newer style, I would mention what salt versions accept the newer style and when/if the old style will be deprecated as well. It looks a lot better than it did for sure. |
|
@bryceml AFAICT it's supported by all the current versions of Salt. I couldn't find any specific information about how the I'll update to include that note. |
|
Sometimes I'm picky so, feel free to use or not my suggestions :-) My suggestions aside, I really appreciate your efforts! Thank you and keep it rolling! a) I had a little bit of a problem grasping the purpose of the comment '# note the trailing ':' ' Alternative: do not use examples using a module function call that do not require any argument (network.interfaces), but use an example that does require one. b) it is not clear (to me), if with the Sodium release, I must remove that configuration snippet. I.e. If I keep it and upgrade to Sodium release, will it error out? Probably a dev should chime in with that info. c) One example seems bogus to me (untested): d) I wouldn't mix usage of 'old' and 'legacy' words Thank you again for your effort! |
I'll be sure to take them with a grain of salt
Mainly to call out the fact that it's necessary, and new. I can't tell you the number of times that I've stared at two similar code samples that were off by one character before I finally realized they were different.
I'm not against that - though we definitely should have the case where no argument is required, because it's different and not at all intuitive. I certainly never would have guessed at that syntax
That's probably because it's not clear to me either
Ahhh, good catch - I missed that 👍
I probably agree with that. If I change that I'd definitely change it to
I could probably poke around in the docs elsewhere to see if there's any kind of convention for indicating new-style syntax.
I also thought it was a little weird. I was (and still am) of mixed feelings about it - it's cool that it calls out Oh! Looking a little closer into it, I see what you mean. I did not expect that. That is very very weird. Yeah, I think I'll probably address the docs and start from a slightly different place there. I think it's probably valuable to keep the mine examples, but I'll stick those towards the end. Thanks for your input! |
Took into account some feedback, also tested more things.
|
@cr1st1p take a look at my updated docs. Turns out the existing |
|
@waynew : better ! Thank you! |
I'm not sure if this should just go against develop, or if I should rebase and direct towards 2018.3.
What does this PR do?
(Attempts) to clarify the module state docs. It wasn't immediately obvious from the docs that there was an old and new style, and the note about manually enabling them was all the way at the bottom.
What issues does this PR fix or reference?
fixes #44882
fixes #51349
Maybe some others?
Tests written?
No - doc only (but new examples were tested manually)
Commits signed with GPG?
Yes