mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update list_present and append grains state function docs to be more clear
Fixes #29919
This commit is contained in:
parent
1a21b3d46b
commit
9bbd129c60
1 changed files with 5 additions and 2 deletions
|
@ -96,7 +96,9 @@ def list_present(name, value, delimiter=DEFAULT_TARGET_DELIM):
|
|||
'''
|
||||
.. versionadded:: 2014.1.0
|
||||
|
||||
Ensure the value is present in the list type grain.
|
||||
Ensure the value is present in the list-type grain. Note: If the grain that is
|
||||
provided in ``name`` is not present on the system, this new grain will be created
|
||||
with the corresponding provided value.
|
||||
|
||||
name
|
||||
The grain name.
|
||||
|
@ -338,7 +340,8 @@ def append(name, value, convert=False,
|
|||
'''
|
||||
.. versionadded:: 2014.7.0
|
||||
|
||||
Append a value to a list in the grains config file
|
||||
Append a value to a list in the grains config file. The grain that is being
|
||||
appended to (name) must exist before the new value can be added.
|
||||
|
||||
name
|
||||
The grain name
|
||||
|
|
Loading…
Add table
Reference in a new issue