File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,8 @@ func (auditor *AzureAuditor) Run() {
163
163
}
164
164
165
165
if cronspecIsValid (auditor .Opts .Cronjobs .ResourceGraph ) && auditor .config .ResourceGraph .IsEnabled () {
166
- for queryName , queryConfig := range auditor .config .ResourceGraph .Queries {
166
+ for key , queryConfig := range auditor .config .ResourceGraph .Queries {
167
+ queryName := key
167
168
resourceGraphConfig := queryConfig
168
169
auditor .addCronjobBySubscription (
169
170
fmt .Sprintf (ReportResourceGraph , queryName ),
@@ -183,7 +184,8 @@ func (auditor *AzureAuditor) Run() {
183
184
}
184
185
185
186
if cronspecIsValid (auditor .Opts .Cronjobs .LogAnalytics ) && auditor .config .LogAnalytics .IsEnabled () {
186
- for queryName , queryConfig := range auditor .config .LogAnalytics .Queries {
187
+ for key , queryConfig := range auditor .config .LogAnalytics .Queries {
188
+ queryName := key
187
189
logAnalyticsConfig := queryConfig
188
190
auditor .addCronjob (
189
191
fmt .Sprintf (ReportLogAnalytics , queryName ),
You can’t perform that action at this time.
0 commit comments