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

Fix AggregateCostModel's parsing of configured SharedOverhead #920

Merged
merged 2 commits into from Sep 7, 2021

Conversation

nikovacevic
Copy link
Collaborator

What does this PR change?

  • Implement GetSharedOverheadCostPerMonth as a clear and safe way to access the configured shared overhead field.

How does this PR impact users? (This is the kind of thing that goes in release notes!)

  • When shared overhead is an empty string, the value will default to 0.0 instead of creating errors.

How was this PR tested?

  • Manually on gcp-niko

Before

Screenshot from 2021-09-07 13-52-17

After

Screenshot from 2021-09-07 13-48-37

Also confirmed that setting non-zero shared costs still works, then reset to $0.00 and confirmed that that still worked, too.
Screenshot from 2021-09-07 14-33-02

Copy link
Collaborator

@kaelanspatel kaelanspatel left a comment

Choose a reason for hiding this comment

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

LGTM

@AjayTripathy
Copy link
Contributor

Thanks, let's get this merged for the upcoming release!

@nikovacevic nikovacevic merged commit bd187be into develop Sep 7, 2021
@nikovacevic nikovacevic deleted the niko/fix-acm branch September 7, 2021 20:59
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.

None yet

3 participants