mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-27 02:52:14 +01:00
refactor(env): use fmt print
This commit is contained in:
parent
7fa553608d
commit
472676ca34
@ -1,6 +1,7 @@
|
||||
package db_lib
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/ansible-semaphore/semaphore/pkg/task_logger"
|
||||
@ -9,8 +10,8 @@ import (
|
||||
|
||||
func getEnvironmentVars() []string {
|
||||
res := []string{}
|
||||
for v, k := range util.Config.EnvironmentVars {
|
||||
res = append(res, v+"="+k)
|
||||
for k, v := range util.Config.EnvironmentVars {
|
||||
res = append(res, fmt.Sprintf("%s=%s", k, v))
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user