Skip to content

Commit 5b7c000

Browse files
shuyama1Gvantsats
authored andcommitted
Ensure SQL operations complete before reporting errors (GoogleCloudPlatform#16059)
1 parent 5c3e9fc commit 5b7c000

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mmv1/third_party/terraform/services/sql/sqladmin_operation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func (w *SqlAdminOperationWaiter) State() string {
3131
}
3232

3333
func (w *SqlAdminOperationWaiter) Error() error {
34-
if w != nil && w.Op != nil && w.Op.Error != nil {
34+
if w != nil && w.Op != nil && w.Op.Error != nil && w.Op.Status == "DONE" {
3535
return SqlAdminOperationError(*w.Op.Error)
3636
}
3737
return nil

0 commit comments

Comments
 (0)