Skip to content

Commit

Permalink
Handle Future
Browse files Browse the repository at this point in the history
  • Loading branch information
Aris van Ommeren committed Oct 15, 2021
1 parent be8e8c0 commit f15c76e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/services/mssql/mssql_server_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ func resourceMsSqlServerCreateUpdate(d *pluginsdk.ResourceData, meta interface{}
if d.HasChange("azuread_administrator") {
aadOnlyDeleteFuture, err := aadOnlyAuthentictionsClient.Delete(ctx, id.ResourceGroup, id.Name)
if err != nil {
if aadOnlyDeleteFuture.Response().StatusCode != 400 {
if !response.WasBadRequest(aadOnlyDeleteFuture.Response()) {
return fmt.Errorf("deleting AD Only Authentications %s: %+v", id.String(), err)
}
log.Printf("[INFO] AD Only Authentication is not removed as AD Admin is not set for %s: %+v", id.String(), err)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f15c76e

Please sign in to comment.