Skip to content

Commit

Permalink
POL-1440 Flexera FOCUS Report Bug Fix (#2907)
Browse files Browse the repository at this point in the history
* update

* fix

* update

* fix

* update

* fix

* update

* update

* update

* update
  • Loading branch information
XOmniverse authored Jan 2, 2025
1 parent 1f806ea commit 700c7ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions cost/flexera/cco/focus_report/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.1.3

- Fixed issue where policy template would fail to complete if "Unamortized" was selected for the `Amortization` parameter.

## v0.1.2

- Added `hide_skip_approvals` field to the info section. It dynamically controls "Skip Action Approvals" visibility.
Expand Down
6 changes: 3 additions & 3 deletions cost/flexera/cco/focus_report/focus_report.pt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ category "Cost"
severity "low"
default_frequency "weekly"
info(
version: "0.1.2",
version: "0.1.3",
provider: "Flexera",
service: "Cloud Cost Optimization",
policy_set: "Cloud Cost Optimization",
Expand Down Expand Up @@ -224,7 +224,7 @@ datasource "ds_flexera_costs" do
field "service", jmes_path(col_item, "dimensions.service")
field "usage_unit", jmes_path(col_item, "dimensions.usage_unit")
field "cost_amortized", jmes_path(col_item, "metrics.cost_amortized_unblended_adj")
field "cost_unamortized", jmes_path(col_item, "metrics.cost_unamortized_unblended_adj")
field "cost_unamortized", jmes_path(col_item, "metrics.cost_nonamortized_unblended_adj")
end
end
end
Expand All @@ -233,7 +233,7 @@ script "js_flexera_costs", type: "javascript" do
parameters "ds_included_bcs", "ds_dates", "param_amortization", "rs_org_id", "rs_optima_host"
result "request"
code <<-EOS
amortization = "cost_unamortized_unblended_adj"
amortization = "cost_nonamortized_unblended_adj"
if (param_amortization == "Amortized") { amortization = "cost_amortized_unblended_adj" }
var request = {
Expand Down

0 comments on commit 700c7ea

Please sign in to comment.