saltext.vault.utils.versions¶
Helper for warning about deprecations
- saltext.vault.utils.versions.warn_until(version, message, category=<class 'DeprecationWarning'>)[source]¶
Warn about deprecations until the specified version is reached, after which raise a RuntimeError to remind developers about removal.
Loosely based on
salt.utils.versions.warn_until
.- version
The version at which the warning turns into an error. Can be specified as a string, float, int or iterable with items castable to integers.
- message
The warning message to show.
- category
The warning class to be thrown, by default
DeprecationWarning
.