Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sysdig/resource_sysdig_secure_team.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ func resourceSysdigSecureTeam() *schema.Resource {
allZonesPlan := plan[SchemaAllZones]

var nonEmptyZoneIDs bool
if !zoneIDsPlan.IsNull() && len(zoneIDsPlan.AsValueSlice()) > 0 {
if !zoneIDsPlan.IsNull() && zoneIDsPlan.IsKnown() && len(zoneIDsPlan.AsValueSlice()) > 0 {
nonEmptyZoneIDs = true
}

if nonEmptyZoneIDs && allZonesPlan.True() {
if nonEmptyZoneIDs && allZonesPlan.IsKnown() && allZonesPlan.True() {
return fmt.Errorf("if %s is enabled, %s must be omitted", SchemaAllZones, SchemaZonesIDsKey)
}

Expand Down
Loading