Add warn_until Fluorine

This commit is contained in:
twangboy 2018-06-27 15:52:17 -06:00
parent 707906ac15
commit 8898e5ff11
No known key found for this signature in database
GPG key ID: 93FF3BDEB278C9EB

View file

@ -73,6 +73,11 @@ def _set_powercfg_value(scheme, sub_group, setting_guid, power, value):
'''
Sets the AC/DC values of a setting with the given power for the given scheme
'''
salt.utils.warn_until(
'Fluorine',
'This function now expects the timeout value in minutes instead of '
'seconds as stated in the documentation. This warning will be removed '
'in Salt Fluorine.')
if scheme is None:
scheme = _get_current_scheme()