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

Add node_count to stale node json output. #46

Merged
merged 2 commits into from
Oct 19, 2017

Conversation

MarkGibbons
Copy link
Contributor

To help make decisions when processing stale nodes having the total number of nodes available
is very helpful.

To help make decisions when processing stale nodes having the total number of nodes available
is very helpful.
@@ -62,7 +62,7 @@ def run
end
end

stale_nodes_hash = {'threshold_days': node_threshold, 'count': stale_nodes.count, 'list': stale_nodes}
stale_nodes_hash = {'threshold_days': node_threshold, 'node_count': node.count, 'count': stale_nodes.count, 'list': stale_nodes}
Copy link
Contributor

Choose a reason for hiding this comment

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

@MarkGibbons this should be nodes.count, not node.count, right?

Just a small nit-pick, can we change the 'node_count' key to org_total_node_count to make it clearer what the number is?

If you can get those two adjustments made, I'll merge this in!
Thank you!!

@jeremymv2 jeremymv2 merged commit 3b841c3 into chef:master Oct 19, 2017
@MarkGibbons
Copy link
Contributor Author

Thank you.

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

Successfully merging this pull request may close these issues.

2 participants