fix: pass force to the datastore command that owns it

The datastore destroys were written with dokku's global `--force`, which works only because dokku translates it into `DOKKU_APPS_FORCE_DELETE` and the plugin reads that environment variable back. The flag belongs to the subcommand, which declares it, so it is passed there instead.

Only the datastore calls move. `network:destroy` and `storage:destroy` are dokku's own commands and keep dokku's own convention.
This commit is contained in:
Jose Diaz-Gonzalez committed 2026-09-20 02:58:02 -04:00
1 parent f36512a19d
commit 11b09fb375
2 files changed
+10 -10

No files matched your search

+2 -2
View File
@@ -179,12 +179,12 @@ teardown() {
echo "status: $status"
assert_success
run /bin/bash -c "dokku --force postgres:destroy $TEST_APP"
run /bin/bash -c "dokku postgres:destroy $TEST_APP --force"
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "dokku --force redis:destroy $TEST_APP"
run /bin/bash -c "dokku redis:destroy $TEST_APP --force"
echo "output: $output"
echo "status: $status"
assert_success