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:
1 file changed
+5
@@ -21,6 +21,11 @@ func main() {
|
|||||||
appName := flag.Arg(0)
|
appName := flag.Arg(0)
|
||||||
processType := flag.Arg(3)
|
processType := flag.Arg(3)
|
||||||
|
|
||||||
|
if os.Getenv("DOKKU_OMIT_RESOURCE_ARGS") == "1" {
|
||||||
|
fmt.Print(string(stdin))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
resources, err := common.PropertyGetAll("resource", appName)
|
resources, err := common.PropertyGetAll("resource", appName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Print(string(stdin))
|
fmt.Print(string(stdin))
|
||||||
|
|||||||
Reference in new issue
Block a user