check response as bool when applying CAOpSetConfig

This commit is contained in:
Dhia Ayachi 2021-07-20 11:03:18 -04:00
parent 485603cc8f
commit 92f892f22e

View File

@ -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