Fernando K pushed to branch main at Root / Serviços / DNS

Commits:

1 changed file:

Changes:

  • render.go
    ... ... @@ -306,15 +306,3 @@ func renderNamedConf(repositoryRootPath string ,zones_by_view map[View][]Zone) {
    306 306
     		log.Fatal(err)
    
    307 307
     	}
    
    308 308
     }
    309
    -
    
    310
    -func main() {
    
    311
    -	netboxUrl := os.Getenv("NETBOX_URL")
    
    312
    -	if netboxUrl == "" {
    
    313
    -		panic(errors.New("Environment variable NETBOX_URL should be set"))
    
    314
    -	}
    
    315
    -	netboxToken := os.Getenv("NETBOX_TOKEN")
    
    316
    -	if netboxToken == "" {
    
    317
    -		panic(errors.New("Environment variable NETBOX_TOKEN should be set"))
    
    318
    -	}
    
    319
    -	Render(".", netboxUrl, netboxToken)
    
    320
    -}