We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When we create a service with minimal option by portainer api, we can't edit it by interface. We got a js error :
Cannot read property 'Mode' of undefined
curl -s -X POST <portainer_api>/endpoints/<endpoint_id>/docker/services/create' -H 'Accept: application/json' -H 'Authorization: Bearer <token>' -d '{"Name":"my_service","TaskTemplate":{"ContainerSpec":{"Image":"nginx:alpine"}}}'
For info the json of the service
{ "CreatedAt": "2017-12-28T08:07:59.017847182Z", "Endpoint": { "Spec": {} }, "ID": "930xg1kpzyy7utnczje8qvjyg", "Spec": { "Labels": {}, "Mode": { "Replicated": { "Replicas": 1 } }, "Name": "my_service", "TaskTemplate": { "ContainerSpec": { "Image": "nginx:alpine" }, "ForceUpdate": 0, "Runtime": "container" } }, "UpdatedAt": "2017-12-28T08:07:59.017847182Z", "Version": { "Index": 10227 } }
Seems that the service object in updateService funtion is undefined
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
When we create a service with minimal option by portainer api, we can't edit it by interface.
We got a js error :
Steps to reproduce
Scale the service from portainer interface from 1 to 2
More info
For info the json of the service
What happen
Seems that the service object in updateService funtion is undefined
The text was updated successfully, but these errors were encountered: