diff --git a/CHANGELOG.md b/CHANGELOG.md index 986d78f..f70e85f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Upgrade Operating System of Docker based images, with [Alpine 3.14](https://hub.docker.com/_/alpine) and [Debian 11](https://hub.docker.com/_/debian) - Reduce Docker images size +### Fixed +- Fix [`rm`](docs/README.md#rm) (remove) action with Portainer CE 2.6 + ## [1.2.0-alpha] - 2021-02-19 ### Added - Test PSU with Portainer CE [2.0.1](https://app.swaggerhub.com/apis/deviantony/Portainer/2.0.1) API diff --git a/psu b/psu index 35a3e26..4895b30 100644 --- a/psu +++ b/psu @@ -1096,7 +1096,8 @@ undeploy() { --ignore-stdin \ --verify=$HTTPIE_VERIFY_SSL \ DELETE "$PORTAINER_URL/api/stacks/$stack_id" \ - "Authorization: Bearer $PORTAINER_AUTH_TOKEN") + "Authorization: Bearer $PORTAINER_AUTH_TOKEN" \ + endpointId==$PORTAINER_ENDPOINT) check_for_errors $? "$delete" echo_debug "Delete action response -> $(echo $delete | jq -C .)" }