Open eliasp opened 7 years ago
@eliasp looks like we need to improve the error reporting. Thanks we will need to get this fixed up
@rallytime please re-open this issue - I don't have permission to do so.
It looks like this was mis-referenced in #37623 and 369653c which has nothing to do with this issue.
Sorry about that @eliasp!
This is basically a duplicate of https://github.com/saltstack/salt/issues/33037 for what it's worth.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
This is still an issue. Would like to see it fixed..
Thank you for updating this issue. It is no longer marked as stale.
Description of Issue/Question
When trying to remove a DB which is in use using
postgresql_database.absent
the resulting error message wrongly indicates the DB wouldn't be present instead of it being "in use".Setup
Make sure to have a PostgreSQL DB setup and in use.
Steps to Reproduce Issue
Try to remove an existing (and used) PostgreSQL DB using:
salt-call --local state.single postgres_database.absent name=test_api_38c0f0cb
The log output clearly shows the discrepancy between what's actually happening (
ERROR: database "test_api_38c0f0cb" is being accessed by other users
) and what Salt is reporting (Database test_api_38c0f0cb is not present, so it cannot be removed
):Versions Report