Closed vboufleur closed 6 years ago
Hi @vboufleur
Please update your templates to the latest definition format: http://portainer.readthedocs.io/en/stable/templates.html
2018/08/02 23:30:44 Unable to parse templates file. Please review your template definition file.
2018/08/02 23:30:44 json: cannot unmarshal string into Go struct field Template.type of type portainer.TemplateType
This error is due to the fact that you need to use an integer for the type
property. Note that external templates are not really supported at the moment in the 1.19.1, you might be interested in https://github.com/portainer/portainer/pull/2119 (which can be tested via portainer/portainer:pr2119
).
Bug description
Trying to add a stack template with a repository with URL
ssh://
is failing with:Expected behavior Correct loadout of the template file. On portainer before last release version it was working with a repository url of
https://
. Then I changed the URL to assh://
one and updated portainer to latest and the error described above starts happening.Steps to reproduce the issue:
Steps to reproduce the behavior:
templates
pointing to this: https://raw.githubusercontent.com/ipburger/portainer-apptemplate/master/portainer-app-template.jsonTechnical details:
/portainer -H tcp://tasks.agent:9001 --tlsskipverify --templates https://raw.githubusercontent.com/ipburger/portainer-apptemplate/master/portainer-app-template.json