mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Add CLI example to xfs.prune_dump function
This commit is contained in:
parent
f771f2b63f
commit
9ea988a79a
@ -289,6 +289,13 @@ def _xfs_prune_output(out, uuid):
|
|||||||
def prune_dump(sessionid):
|
def prune_dump(sessionid):
|
||||||
'''
|
'''
|
||||||
Prunes the dump session identified by the given session id.
|
Prunes the dump session identified by the given session id.
|
||||||
|
|
||||||
|
CLI Example:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
salt '*' xfs.prune_dump b74a3586-e52e-4a4a-8775-c3334fa8ea2c
|
||||||
|
|
||||||
'''
|
'''
|
||||||
out = __salt__['cmd.run_all']("xfsinvutil -s {0} -F".format(sessionid))
|
out = __salt__['cmd.run_all']("xfsinvutil -s {0} -F".format(sessionid))
|
||||||
_verify_run(out)
|
_verify_run(out)
|
||||||
|
Loading…
Reference in New Issue
Block a user