Fixed writing config attribute 'max_retries' for existing client configs for aws auth method. (#4980)

This commit is contained in:
andrejvanderzee
2018-07-24 16:09:44 +02:00
committed by Jeff Mitchell
parent 255b23156f
commit 2b34bdaedc

View File

@@ -235,6 +235,7 @@ func (b *backend) pathConfigClientCreateUpdate(ctx context.Context, req *logical
maxRetriesInt, ok := data.GetOk("max_retries")
if ok {
configEntry.MaxRetries = maxRetriesInt.(int)
changedOtherConfig = true
} else if req.Operation == logical.CreateOperation {
configEntry.MaxRetries = data.Get("max_retries").(int)
}