File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,13 +14,17 @@ var (
1414 dbWait = utils .PodConfig .GetString ("wait_for_db" , "empty" )
1515)
1616
17- func ConfigureApp ( ) {
17+ func ConfigureAppAdmin ( useAdmin bool ) {
1818 utils .ConfigureLogging ()
19- database .Configure ( )
19+ database .ConfigureAdmin ( useAdmin )
2020 metrics .Configure ()
2121 database .DBWait (dbWait )
2222}
2323
24+ func ConfigureApp () {
25+ ConfigureAppAdmin (false )
26+ }
27+
2428func SetupTestEnvironment () {
2529 utils .SetDefaultEnvOrFail ("LOG_LEVEL" , "debug" )
2630 ConfigureApp ()
Original file line number Diff line number Diff line change 66)
77
88func main () {
9- database .InitDB ()
9+ database .InitDB (true )
1010 if len (os .Args ) > 1 {
1111 switch os .Args [1 ] {
1212 case "inventory_hosts" :
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import (
2424
2525// @BasePath /api/patch/admin
2626func RunAdminAPI () {
27- core .ConfigureApp ( )
27+ core .ConfigureAppAdmin ( true )
2828
2929 // Toggle Turnpike authentication for internal API (manual sync, re-calc)
3030 enableTurnpikeAuth := utils .PodConfig .GetBool ("turnpike_auth" , true )
You can’t perform that action at this time.
0 commit comments