[Bug]: runners throw a warning at the end
Open
@twangboy is already working on this.
Since Aug 28, 2026.
bug
- Dominant language
- Python
- Stars
- 15.7k
- Forks
- 5.6k
- Avg merge
- 2d 44m
- Merged PRs (30d)
- 80
Description
What happened?
salt-run commands are throwing a warning at the end of every return.
(venv_3008.x) shane@ubuntu-2404:~/src/salt$ salt-run manage.versions
Master:
3008.2+393.g4ae4bf944f
Minion offline:
----------
win20:
False
Up to date:
----------
local_minion:
3008.2+393.g4ae4bf944f
[WARNING ] unclosed Runner <salt.runner.Runner object at 0x769754d77ad0>; call ``destroy()`` or use as a context manager
unclosed MasterMinion <salt.minion.MasterMinion object at 0x769753b04c10>; call ``destroy()`` or use as a context manager
Type of salt install
Official deb
Major version
3008.x
What supported OS are you seeing the problem on? Can select multiple. (If bug appears on an unsupported OS, please open a GitHub Discussion instead)
ubuntu-24.04
salt --versions-report output
head of 3008.x branch (3008.2+393.g4ae4bf944f)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.