Skip to content

Commit 6f0b7c6

Browse files
Booleans are hard
1 parent 726e2b3 commit 6f0b7c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/elasticsearch/security/api_key.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func resourceSecurityApiKeyCreate(ctx context.Context, d *schema.ResourceData, m
140140
if err != nil {
141141
return diag.FromErr(err)
142142
}
143-
if isSupported {
143+
if !isSupported {
144144
return diag.Errorf("Specifying `restriction` on an API key role description is not supported in this version of Elasticsearch. Role descriptor(s) %s", strings.Join(keysWithRestrictions, ", "))
145145
}
146146
}

0 commit comments

Comments
 (0)