diff --git a/salt/modules/macdefaults.py b/salt/modules/macdefaults.py index 237aa09f183b..864cd1877bb8 100644 --- a/salt/modules/macdefaults.py +++ b/salt/modules/macdefaults.py @@ -74,6 +74,8 @@ def write( The separator to use when splitting the key into a list of keys. If None, the key will not be split (Default). + .. versionadded:: 3008.0 + value The value to write to the given key. Dates should be in the format 'YYYY-MM-DDTHH:MM:SSZ' @@ -108,11 +110,15 @@ def write( If current value is not a dictionary this option will be ignored. This option will be set to True if vtype is dict-add. + .. versionadded:: 3008.0 + array_add Append the value to the array. If current value is not a list this option will be ignored. This option will be set to True if vtype is array-add. + .. versionadded:: 3008.0 + Raises: KeyError: When the key is not found in the domain IndexError: When the key is not a valid array index @@ -195,6 +201,8 @@ def read(domain, key, user=None, key_separator=None): The separator to use when splitting the key into a list of keys. If None, the key will not be split (Default). + .. versionadded:: 3008.0 + user The user to read the defaults from @@ -236,6 +244,8 @@ def delete(domain, key, user=None, key_separator=None): The separator to use when splitting the key into a list of keys. If None, the key will not be split (Default). + .. versionadded:: 3008.0 + user The user to delete the defaults with @@ -303,6 +313,7 @@ def cast_value_to_vtype(value, vtype): Returns: The converted value + .. versionadded:: 3008.0 """ # Boolean if vtype in ("bool", "boolean"): diff --git a/salt/states/macdefaults.py b/salt/states/macdefaults.py index 09a1fde04b7d..088e2ced12e9 100644 --- a/salt/states/macdefaults.py +++ b/salt/states/macdefaults.py @@ -30,6 +30,8 @@ def write(name, domain, value, vtype=None, name_separator=None, user=None): The separator to use when splitting the name into a list of keys. If None, the name will not be split (Default). + .. versionadded:: 3008.0 + domain The name of the domain to write to @@ -91,6 +93,8 @@ def absent(name, domain, user=None, name_separator=None): The separator to use when splitting the name into a list of keys. If None, the name will not be split (Default). + .. versionadded:: 3008.0 + domain The name of the domain to remove from