mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add deprecation warning for 'openscap.xccdf' function
This commit is contained in:
parent
aba6f6beae
commit
1c923149ae
1 changed files with 6 additions and 0 deletions
|
@ -10,6 +10,8 @@ import shutil
|
|||
import tempfile
|
||||
from subprocess import PIPE, Popen
|
||||
|
||||
import salt.utils.versions
|
||||
|
||||
ArgumentParser = object
|
||||
|
||||
try:
|
||||
|
@ -185,6 +187,10 @@ def xccdf(params):
|
|||
|
||||
salt '*' openscap.xccdf "eval --profile Default /usr/share/openscap/scap-yast2sec-xccdf.xml"
|
||||
"""
|
||||
salt.utils.versions.warn_until(
|
||||
3009,
|
||||
"The 'xccdf' function has been deprecated, please use 'xccdf_eval' instead",
|
||||
)
|
||||
params = shlex.split(params)
|
||||
policy = params[-1]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue