Skip to content

Commit

Permalink
Scan policy changes (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
rishi-anand authored Jun 24, 2021
1 parent f6a8d80 commit 614e013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spectrocloud/cluster_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func toScanPolicy(d *schema.ResourceData) *models.V1alpha1ClusterComplianceSched
}

func flattenScanPolicy(driverSpec map[string]models.V1alpha1ComplianceScanDriverSpec) []interface{} {
result := make([]interface{}, 1)
result := make([]interface{}, 0, 1)
data := make(map[string]interface{})
if v, found := driverSpec["kube-bench"]; found {
data["configuration_scan_schedule"] = v.Config.Schedule.ScheduledRunTime
Expand Down

0 comments on commit 614e013

Please sign in to comment.