Skip to content

Commit

Permalink
fix: use "gcp" for google bill connect lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
bryankaraffa authored Aug 20, 2024
1 parent 8ac8846 commit 61c646a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions operational/flexera/onboarding/flexera_onboarding.pt
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,10 @@ script "js_result_fail_generally_recommended_templates", type: "javascript" do
// For each vendor in the common policy list
_.each(_.keys(ds_generally_recommended_templates_json), function(vendor) {
var bill_connects = _.filter(ds_bill_connects, function (bill_connect) {
// If vendor == google, look for "gcp" instead
if (vendor == "google") {
vendor = "gcp"
}
// Match if bill_connect.kind contains vendor string
return bill_connect.kind.indexOf(vendor) > -1;
});
Expand Down

0 comments on commit 61c646a

Please sign in to comment.