Merge pull request #35495 from rallytime/fix-35458

Use correct deprecated notation instead of a warning for apache_module.enable state function.
This commit is contained in:
Mike Place 2016-08-17 18:36:40 +09:00 committed by GitHub
commit 678759ba6c

View file

@ -16,6 +16,8 @@ Enable and disable apache modules.
apache_module.disabled:
- name: cgi
'''
# Import Python libs
from __future__ import absolute_import
from salt.ext.six import string_types
@ -66,11 +68,10 @@ def enabled(name):
def enable(name):
'''
Ensure an Apache module is enabled.
Ensure an Apache module is enabled. This function is deprecated and will be
removed in Salt Nitrogen. Please use the ``enabled`` state function instead.
.. warning::
This function is deprecated and will be removed in Salt Nitrogen.
.. deprecated:: 2016.3.0
name
Name of the Apache module