mirror of
https://github.com/status-im/consul.git
synced 2025-02-23 02:48:19 +00:00
check response as bool when applying CAOpSetConfig
This commit is contained in:
parent
485603cc8f
commit
92f892f22e
@ -909,6 +909,9 @@ func (c *CAManager) UpdateConfiguration(args *structs.CARequest) (reterr error)
|
||||
if respErr, ok := resp.(error); ok {
|
||||
return respErr
|
||||
}
|
||||
if respOk, ok := resp.(bool); ok && !respOk {
|
||||
return errors.New("configuration not applied")
|
||||
}
|
||||
|
||||
// If the config has been committed, update the local provider instance
|
||||
cleanupNewProvider = false
|
||||
|
Loading…
x
Reference in New Issue
Block a user