Only return 200 if there are actually warnings in AWS roles create/update (#5487)
This commit is contained in:
parent
b47e648ddf
commit
c8dbab9c3d
|
@ -248,6 +248,10 @@ func (b *backend) pathRolesWrite(ctx context.Context, req *logical.Request, d *f
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if len(resp.Warnings) == 0 {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
return &resp, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue