Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>
return 2
}
+ // Load the config twice -- once without loading deprecated
+ // keys/files, once with -- and then compare the two resulting
+ // configs. This reveals whether the deprecated keys/files
+ // have any effect on the final configuration.
+ //
+ // If they do, show the operator how to update their config
+ // such that the deprecated keys/files are superfluous and can
+ // be deleted.
loader.SkipDeprecated = true
withoutDepr, err := loader.Load()
if err != nil {
type Loader struct {
Stdin io.Reader
Logger logrus.FieldLogger
- SkipDeprecated bool
+ SkipDeprecated bool // Don't load legacy/deprecated config keys/files
Path string
KeepstorePath string