add 'state_output_profile' option for profile output#19320
Conversation
|
I am wondering if this change could help you: Otherwise I am happy to merge this in given the commented lines are fixed :) |
|
ok, fixed as advised in the comment. The readability of json output is worse than text output, so I prefer this options to be included, thanks! |
add 'state_output_profile' option for profile output
|
Thanks @clan ! I considered that after posting it, thanks for the changes! |
|
why this pull request not merged to 2015.5 branch? thanks |
|
Hi @clan - So our workflow is to merge branches "forward". So, for example, a release branch such as 2014.7 or 2015.5 is merged forward into newer branches like develop. (2014.7 --> 2015.5, and then 2015.5 --> develop.) If a fix belongs in a release branch, rather than develop, then the fix should be applied directly to that branch, and then it will merge forward and propagate to all "newer" branches. If a fix was originally made against a "newer" branch such as develop, but it should be in an older branch like 2015.5, then we'll need to backport it. We try to determine if fixes should be backported when they're submitted, but sometimes we miss some. I can look at backporting this fix right now. In the future, best practice is to make the fix against the release branch that the bug occurs on and then we'll merge it forward. You can read more about that here, if you like. |
|
got it, thanks! |
|
Sure thing! :) |
We use "pdsh -l root -g group salt-call state.sls service.xxxx test=True| dshbak -c" to check whether the change is expected and identical for many hosts before actually apply them. With the profile information is shown, the diff infomation from different hosts can't be merged (by dshbak -c) because of the start time and duration. This patch add an option 'state_output_profile', so we can turn off the started and duration info.