Closed imaskm closed 2 years ago
can we wrap errors instead of returning err
directoctly with some message or function name, like
return errors.Wrap(err, "GetApplicationCost")
or with more description as
return errors.Wrap(err, "GetApplicationCost: unable to get the value")
can we wrap errors instead of returning
err
directoctly with some message or function name, like
return errors.Wrap(err, "GetApplicationCost")
or with more description as
return errors.Wrap(err, "GetApplicationCost: unable to get the value")
Done
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
2.9% Duplication
Description
cost from clouds is returned in float/string format, in spawner now we are using Decimal type for all operations, the cost rpcs will return the cost 1/100th of cents as integer
Fixes # (issue) avoid using float as cost type
Type of change
Please delete options that are not relevant.
why
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Checklist: