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

Commits:

1 changed file:

Changes:

  • render.go
    ... ... @@ -340,15 +340,3 @@ func Render(repositoryRootPath, netboxUrl, netboxToken string) {
    340 340
     		log.Fatalf("Could not execute template: %v", err)
    
    341 341
     	}
    
    342 342
     }
    343
    -
    
    344
    -func main() {
    
    345
    -	netboxUrl := os.Getenv("NETBOX_URL")
    
    346
    -	if netboxUrl == "" {
    
    347
    -		panic(errors.New("Environment variable NETBOX_URL should be set"))
    
    348
    -	}
    
    349
    -	netboxToken := os.Getenv("NETBOX_TOKEN")
    
    350
    -	if netboxToken == "" {
    
    351
    -		panic(errors.New("Environment variable NETBOX_TOKEN should be set"))
    
    352
    -	}
    
    353
    -	Render(".", netboxUrl, netboxToken)
    
    354
    -}