Update TestSeal to ignore setting the config to nil

This commit is contained in:
Brian Kassouf 2017-03-01 14:10:06 -08:00
parent 44dfdc0303
commit 259e686d4c
1 changed files with 4 additions and 0 deletions

View File

@ -83,6 +83,10 @@ func (d *TestSeal) RecoveryConfig() (*SealConfig, error) {
}
func (d *TestSeal) SetRecoveryConfig(config *SealConfig) error {
if config == nil {
return nil
}
d.recoveryConfig = config
return nil
}