Skip to content

Commit

Permalink
Extra check on empty SSE options.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Mar 2, 2018
1 parent 2114a3b commit 1aa8400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/resource_aws_dynamodb_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func resourceAwsDynamoDbTableCreate(d *schema.ResourceData, meta interface{}) er

if v, ok := d.GetOk("encrypt_at_rest"); ok {
options := v.([]interface{})
if options[0] == nil {
if len(options) == 0 || options[0] == nil {
return fmt.Errorf("At least one field is expected inside encrypt_at_rest")
}

Expand Down

0 comments on commit 1aa8400

Please sign in to comment.