Fernando K pushed to branch main at Root / Netboxadm

Commits:

1 changed file:

Changes:

  • cmd/dns/update.go
    ... ... @@ -21,16 +21,8 @@ var UpdateCmd = &cobra.Command{
    21 21
     func updateDNS(cmd *cobra.Command, args []string) error {
    
    22 22
     	localPath := "/tmp/dns"
    
    23 23
     	callRenderScript := func() error {
    
    24
    -		// run the rendering script
    
    25
    -		// won't work in a workspace without the requirements
    
    26
    -		// they are:
    
    27
    -		// - python3     jinja2
    
    28
    -		// - python3     pyyaml
    
    29
    -		// - python3     pynetbox
    
    30
    -		// - python3     requests
    
    31
    -		// - bind9-utils named-checkzone
    
    32
    -		cmdRender := exec.Command("python3", "render-bind-dns.py", "--supress_output")
    
    33
    -		cmdRender.Dir = localPath + "/ansible"
    
    24
    +		cmdRender := exec.Command("go", "run", "render.go", "--supress_output")
    
    25
    +		cmdRender.Dir = localPath
    
    34 26
     		cmdRender.Stdout = os.Stdout
    
    35 27
     		cmdRender.Stderr = os.Stderr
    
    36 28
     		err := cmdRender.Run()