15720: Add /users/* endpoints to internal API.
[arvados.git] / lib / config / cmd.go
index 7889d85c8047b08cfdb1048791b28dddeb7ed360..e9ceaca8642af7dbb7e993fa0b52de6e81566d63 100644 (file)
@@ -104,12 +104,22 @@ func (checkCommand) RunCommand(prog string, args []string, stdin io.Reader, stdo
                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
+       loader.SkipLegacy = true
        withoutDepr, err := loader.Load()
        if err != nil {
                return 1
        }
        loader.SkipDeprecated = false
+       loader.SkipLegacy = false
        withDepr, err := loader.Load()
        if err != nil {
                return 1