mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
fix doc strings of some modules
This commit is contained in:
parent
b03decb4dd
commit
95d05543c4
@ -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:
|
||||
|
@ -39,6 +39,6 @@ def ls():
|
||||
|
||||
CLI Example::
|
||||
|
||||
salt '*' grains.list
|
||||
salt '*' grains.ls
|
||||
'''
|
||||
return sorted(__grains__)
|
||||
|
@ -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 = {}
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user