Add changelog and docs for 57718 fix

This commit is contained in:
Daniel A. Wozniak 2020-07-13 20:39:44 +00:00 committed by Daniel Wozniak
parent 62f95eafdf
commit a6e481ea73
2 changed files with 10 additions and 0 deletions

2
changelog/57718.fixed Normal file
View file

@ -0,0 +1,2 @@
Grains module delkey and delval methods now support the force option. This is
needed for deleting grains with complex (nested) values.

View file

@ -426,6 +426,10 @@ def delkey(key, force=False):
key
The grain key from which to delete the value.
force
Force remove the grain even when it is a mapped value.
Defaults to False
CLI Example:
.. code-block:: bash
@ -449,6 +453,10 @@ def delval(key, destructive=False, force=False):
destructive
Delete the key, too. Defaults to False.
force
Force remove the grain even when it is a mapped value.
Defaults to False
CLI Example:
.. code-block:: bash