1
0
mirror of https://github.com/openshift/image-registry.git synced 2026-02-05 09:45:55 +01:00

use env var for config arg value

This commit is contained in:
Paul Weil
2015-07-22 10:28:28 -04:00
committed by David Eads
parent 987e934a05
commit 77f1582257

View File

@@ -18,8 +18,6 @@ func main() {
configurationPath := ""
if flag.NArg() > 0 {
configurationPath = flag.Arg(0)
} else if os.Getenv("REGISTRY_CONFIGURATION_PATH") != "" {
configurationPath = os.Getenv("REGISTRY_CONFIGURATION_PATH")
}
if configurationPath == "" {
fmt.Println("configuration path unspecified")