Skip to content

Commit

Permalink
task: rm unused datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
bryankaraffa authored Jan 7, 2025
1 parent d500537 commit f862ffb
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions cost/azure/schedule_instance/azure_schedule_instance.pt
Original file line number Diff line number Diff line change
Expand Up @@ -231,22 +231,6 @@ datasource "ds_policy_incident" do
end
end

datasource "ds_policy_incident_action_grouped" do
run_script $js_policy_incident_action_grouped, $ds_policy_incident
end

script "js_policy_incident_action_grouped", type: "javascript" do
parameters "ds_policy_incident"
result "result"
code <<-EOS
var grouped = _.groupBy(ds_policy_incident, 'action_failed')
result = {
"failed": grouped['true'] || [],
"successful": grouped['false'] || []
}
EOS
end

datasource "ds_policy_incident_details" do
iterate $ds_policy_incident
request do
Expand Down

0 comments on commit f862ffb

Please sign in to comment.