Skip to content

Commit

Permalink
fix gh issue 25163 (#25180)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinbai authored Mar 8, 2024
1 parent 1283a20 commit 2cafa29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/services/mssql/mssql_database_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ func resourceMsSqlDatabaseCreate(d *pluginsdk.ResourceData, meta interface{}) er
return fmt.Errorf("'restore_dropped_database_id' is required for create_mode %s", createMode)
}
case databases.CreateModeRestoreLongTermRetentionBackup:
if _, dbok := d.GetOk("long_term_retention_backup_id"); !dbok {
return fmt.Errorf("'long_term_retention_backup_id' is required for create_mode %s", createMode)
if _, dbok := d.GetOk("restore_long_term_retention_backup_id"); !dbok {
return fmt.Errorf("'restore_long_term_retention_backup_id' is required for create_mode %s", createMode)
}
}

Expand Down

0 comments on commit 2cafa29

Please sign in to comment.