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

Allow client.cpu_total_compute to override attr.cpu.totalcompute #9532

Merged
merged 1 commit into from
Jan 7, 2021

Conversation

joel0
Copy link
Contributor

@joel0 joel0 commented Dec 5, 2020

The documentation states that ${attr.cpu.totalcompute} may be overridden by client.cpu_total_compute. The actual behaviour was that attr.cpu.totalcompute was unset when cpu_total_compute was used.

I think either the feature should operate how the documentation says, or the documentation should be updated. I opted for changing the feature, as I think it would be useful.

@vercel
Copy link

vercel bot commented Dec 5, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

nomad-storybook-and-ui – ./ui

🔍 Inspect: https://vercel.com/hashicorp/nomad-storybook-and-ui/h49osv8hb
✅ Preview: Canceled

@vercel vercel bot temporarily deployed to Preview – nomad-storybook-and-ui December 5, 2020 01:56 Inactive
@vercel vercel bot temporarily deployed to Preview – nomad December 5, 2020 01:56 Inactive
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

Hi @joel0! Thanks for opening this PR!

client/fingerprint/cpu.go Outdated Show resolved Hide resolved
@joel0 joel0 force-pushed the totalcompute-override branch from 726c08b to 360f588 Compare December 7, 2020 19:21
@vercel
Copy link

vercel bot commented Dec 7, 2020

@joel0 is attempting to deploy a commit to the HashiCorp Team on Vercel.

A member of the Team first needs to authorize it.

@vercel vercel bot temporarily deployed to Preview – nomad December 7, 2020 19:21 Inactive
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

Sorry about the delay in re-review! I didn't notice this had been updated.

I've pulled this locally and it rebases cleanly, and I've verified both the bug on current 1.0.1 and that the fix works. LGTM! Thanks again @joel0!

@tgross tgross merged commit 2e17610 into hashicorp:master Jan 7, 2021
tgross added a commit that referenced this pull request Jan 7, 2021
tgross added a commit that referenced this pull request Jan 7, 2021
backspace pushed a commit that referenced this pull request Jan 22, 2021
@github-actions
Copy link

github-actions bot commented Dec 4, 2022

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants