Add missing CLI examples to some snapper module functions (#35961)

Fixes test_valid_docs test failure on Suse test VMs
This commit is contained in:
Nicole Thomas 2016-08-31 15:41:28 -06:00 committed by GitHub
parent 347b05abd0
commit 3057f80448

View File

@ -246,6 +246,12 @@ def _get_last_snapshot(config='root'):
def status_to_string(dbus_status):
'''
Converts a numeric dbus snapper status into a string
CLI Example:
.. code-block:: bash
salt '*' snapper.status_to_string <dbus_status>
'''
status_tuple = (
dbus_status & 0b000000001, dbus_status & 0b000000010, dbus_status & 0b000000100,
@ -514,6 +520,12 @@ def undo(config='root', files=None, num_pre=None, num_post=None):
You to undo changes between num_pre and the current version of the
files use num_post=0.
CLI Example:
.. code-block:: bash
salt '*' snapper.undo
'''
pre, post = _get_num_interval(config, num_pre, num_post)