fix doc strings of some modules

This commit is contained in:
Martin Schnabel 2011-12-18 22:34:24 +01:00
parent b03decb4dd
commit 95d05543c4
4 changed files with 8 additions and 8 deletions

View File

@ -208,7 +208,7 @@ def get_sum(path, form='md5'):
CLI Example::
salt '*' /etc/passwd sha512
salt '*' file.get_sum /etc/passwd sha512
'''
if not os.path.isfile(path):
return 'File not found'
@ -311,9 +311,9 @@ def find(path, *opts):
CLI Examples::
salt '*' / type=f name=\*.bak size=+10m
salt '*' /var mtime=+30d size=+10m print=path,size,mtime
salt '*' /var/log name=\*.[0-9] mtime=+30d size=+10m delete
salt '*' file.find / type=f name=\*.bak size=+10m
salt '*' file.find /var mtime=+30d size=+10m print=path,size,mtime
salt '*' file.find /var/log name=\*.[0-9] mtime=+30d size=+10m delete
'''
opts_dict = {}
for opt in opts:

View File

@ -39,6 +39,6 @@ def ls():
CLI Example::
salt '*' grains.list
salt '*' grains.ls
'''
return sorted(__grains__)

View File

@ -12,7 +12,7 @@ def info(name):
CLI Example::
salt '*' shadow.user root
salt '*' shadow.info root
'''
try:
data = spwd.getspnam(name)
@ -46,7 +46,7 @@ def set_password(name, password):
CLI Example::
salt '*' root $1$UYCIxa628.9qXjpQCjM4a..
salt '*' shadow.set_password root $1$UYCIxa628.9qXjpQCjM4a..
'''
s_file = '/etc/shadow'
ret = {}

View File

@ -86,7 +86,7 @@ def sls(mods, env='base'):
CLI Example:
salt \* state.modules core,edit.vim dev
salt '*' state.sls core,edit.vim dev
'''
st_ = salt.state.HighState(__opts__)
if isinstance(mods, str):