mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Deprecate Django returner
It's likely that the Django returner never worked - it can only fire signals from within the same process that the Django server is running in, which *won't* be the process that Salt is running in. Deprecating and marking for removal.
This commit is contained in:
parent
14a932aca4
commit
9c2a84845c
1 changed files with 6 additions and 0 deletions
|
@ -32,6 +32,7 @@ import logging
|
|||
# Import Salt libraries
|
||||
import salt.returners
|
||||
import salt.utils.jid
|
||||
from salt.utils.versions import warn_until_date
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
@ -49,6 +50,11 @@ __virtualname__ = "django"
|
|||
|
||||
|
||||
def __virtual__():
|
||||
warn_until_date(
|
||||
"20250101",
|
||||
"The django returner is broken and deprecated, and will be removed"
|
||||
" after {date}.",
|
||||
)
|
||||
if not HAS_DJANGO:
|
||||
return False, "Could not import django returner; django is not installed."
|
||||
return True
|
||||
|
|
Loading…
Add table
Reference in a new issue