Skip to content

Commit

Permalink
fixed indentation in policy block for creating image-charts report in…
Browse files Browse the repository at this point in the history
… incident
  • Loading branch information
nia-vf1 committed Mar 22, 2024
1 parent 518599c commit 84187b4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,10 @@ policy "pol_instance_cost_hour" do
validate_each $ds_chart_creation do
summary_template "Azure Cost Report - Instance Cost Per Hour"
detail_template <<-EOS
# Azure Cost Report for {{ rs_org_name }} - Instance Cost Per Hour
![Azure Cost Report - Instance Cost Per Hour](https://api.image-charts-auth.flexeraeng.com/ic-function?rs_org_id={{ rs_org_id }}&rs_project_id={{ rs_project_id }}&{{with index data 0}}{{ .chart_dimensions.chartData }}{{end}}&{{with index data 0}}{{ .chart_dimensions.chartSize }}{{end}}&{{with index data 0}}{{ .chart_dimensions.chartType }}{{end}}&{{with index data 0}}{{ .chart_dimensions.chartLegend }}{{end}}&{{with index data 0}}{{ .chart_dimensions.chartScale}}{{end}}&{{with index data 0}}{{ .chart_dimensions.chartAxis }}{{end}}&{{with index data 0}}{{ .chart_dimensions.chartAxisLabel }}{{end}}&{{with index data 0}}{{ .chart_dimensions.chartLineStyle }}{{end}}&{{with index data 0}}{{ .chart_dimensions.chartLineColour }}{{end}}&{{with index data 0}}{{ .chart_dimensions.chartTitle }}{{end}}&{{with index data 0}}{{ .chart_dimensions.chartLegendPosition }}{{end}}&{{with index data 0}}{{ .chart_dimensions.chartAxisFormat }}{{end}}&{{with index data 0}}{{ .chart_dimensions.chartImage }}{{end}})
___
###### Policy Applied in Account: {{ rs_project_name }} (Account ID: {{ rs_project_id }}) within Org: {{ rs_org_name }} (Org ID: {{ rs_org_id }})
# Azure Cost Report for {{ rs_org_name }} - Instance Cost Per Hour
![Azure Cost Report - Instance Cost Per Hour](https://api.image-charts-auth.flexeraeng.com/ic-function?rs_org_id={{ rs_org_id }}&rs_project_id={{ rs_project_id }}&{{with index data 0}}{{ .chart_dimensions.chartData }}{{end}}&{{with index data 0}}{{ .chart_dimensions.chartSize }}{{end}}&{{with index data 0}}{{ .chart_dimensions.chartType }}{{end}}&{{with index data 0}}{{ .chart_dimensions.chartLegend }}{{end}}&{{with index data 0}}{{ .chart_dimensions.chartScale}}{{end}}&{{with index data 0}}{{ .chart_dimensions.chartAxis }}{{end}}&{{with index data 0}}{{ .chart_dimensions.chartAxisLabel }}{{end}}&{{with index data 0}}{{ .chart_dimensions.chartLineStyle }}{{end}}&{{with index data 0}}{{ .chart_dimensions.chartLineColour }}{{end}}&{{with index data 0}}{{ .chart_dimensions.chartTitle }}{{end}}&{{with index data 0}}{{ .chart_dimensions.chartLegendPosition }}{{end}}&{{with index data 0}}{{ .chart_dimensions.chartAxisFormat }}{{end}}&{{with index data 0}}{{ .chart_dimensions.chartImage }}{{end}})
___
###### Policy Applied in Account: {{ rs_project_name }} (Account ID: {{ rs_project_id }}) within Org: {{ rs_org_name }} (Org ID: {{ rs_org_id }})
EOS
check eq(0,1)
escalate $esc_email
Expand Down

0 comments on commit 84187b4

Please sign in to comment.