qa: Make new parameters modifiable through env

This commit is contained in:
nemunaire 2023-11-25 18:37:35 +01:00
commit f3cdf1afca
2 changed files with 9 additions and 3 deletions

View file

@ -6,6 +6,7 @@ import (
"io"
"net/http"
"net/url"
"os"
"path"
"github.com/gin-gonic/gin"
@ -14,7 +15,7 @@ import (
var adminLink string
func init() {
flag.StringVar(&adminLink, "admin-link", adminLink, "URL to admin interface, to use its features as replacement")
flag.StringVar(&adminLink, "admin-link", os.Getenv("FIC_QA_ADMIN_LINK"), "URL to admin interface, to use its features as replacement")
}
func fwdAdmin(method, urlpath string, body io.Reader, out interface{}) error {