Merge pull request #3578 from dokku/allow-omit-resource-args

Allow omitting resource args by setting DOKKU_OMIT_RESOURCE_ARGS
This commit is contained in:
Jose Diaz-Gonzalez
2019-05-30 17:00:02 -04:00
committed by GitHub

View File

@@ -21,6 +21,11 @@ func main() {
appName := flag.Arg(0)
processType := flag.Arg(3)
if os.Getenv("DOKKU_OMIT_RESOURCE_ARGS") == "1" {
fmt.Print(string(stdin))
return
}
resources, err := common.PropertyGetAll("resource", appName)
if err != nil {
fmt.Print(string(stdin))