[Git][root/netboxadm][main] feat: run DNS using newer comand

Fernando K pushed to branch main at Root / Netboxadm Commits: a6f4530e by Fernando Monteiro Kiotheka at 2025-07-29T11:12:07-03:00 feat: run DNS using newer comand - - - - - 1 changed file: - cmd/dns/update.go Changes: ===================================== cmd/dns/update.go ===================================== @@ -21,16 +21,8 @@ var UpdateCmd = &cobra.Command{ func updateDNS(cmd *cobra.Command, args []string) error { localPath := "/tmp/dns" callRenderScript := func() error { - // run the rendering script - // won't work in a workspace without the requirements - // they are: - // - python3 jinja2 - // - python3 pyyaml - // - python3 pynetbox - // - python3 requests - // - bind9-utils named-checkzone - cmdRender := exec.Command("python3", "render-bind-dns.py", "--supress_output") - cmdRender.Dir = localPath + "/ansible" + cmdRender := exec.Command("go", "run", "render.go", "--supress_output") + cmdRender.Dir = localPath cmdRender.Stdout = os.Stdout cmdRender.Stderr = os.Stderr err := cmdRender.Run() View it on GitLab: https://gitlab.c3sl.ufpr.br/root/netboxadm/-/commit/a6f4530e398bae3daa0ed54b... -- View it on GitLab: https://gitlab.c3sl.ufpr.br/root/netboxadm/-/commit/a6f4530e398bae3daa0ed54b... You're receiving this email because of your account on gitlab.c3sl.ufpr.br.
participantes (1)
-
Fernando K (@fmkiotheka)