About template names

Hi!, Is there any restriction about template names? I took the main.tf file from docker template, copied it to another folder, modified and tried to create a new template, and I'm getting this error: ... Validation failed. POST http://192.168.1.10:3000/api/v2/organizations/39b7fb8c-b981-40fd-9752-1a6e05751857/templates: unexpected status code 400: Validation failed. name: Validation failed for tag "username" with value: "quarkus_node" ... Then I copied back the modified file to docker folder, execute the update command and works perfectly, so I'm guessing the file is correct. But Coder server doesn't like the template name. Any clue? Thanks
5 Replies
maxifelix
maxifelixOP3y ago
Note: "quarkus_node" is the name of the folder where I copied the file, and the intended template name.
Phorcys
Phorcys3y ago
can you send me the template file you're using?
kyle
kyle3y ago
Underscores aren't allowed in template names!
maxifelix
maxifelixOP3y ago
That's it! The underscore was the problem. The error message is tricky though.
sharkymark
sharkymark3y ago
also there is a max length of 32 I think, for templates and workspaces
Want results from more Discord servers?
Add your server