mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
commit
dbb794e8bb
@ -705,6 +705,8 @@ def shell(cmd,
|
|||||||
'''
|
'''
|
||||||
Execute the passed command and return the output as a string.
|
Execute the passed command and return the output as a string.
|
||||||
|
|
||||||
|
.. versionadded:: 2015.2.0
|
||||||
|
|
||||||
************************************************************
|
************************************************************
|
||||||
WARNING: This passes the cmd argument directly to the shell
|
WARNING: This passes the cmd argument directly to the shell
|
||||||
without any further processing! Be absolutely sure that you
|
without any further processing! Be absolutely sure that you
|
||||||
@ -1571,6 +1573,8 @@ def shells():
|
|||||||
'''
|
'''
|
||||||
Lists the valid shells on this system via the /etc/shells file
|
Lists the valid shells on this system via the /etc/shells file
|
||||||
|
|
||||||
|
.. versionadded:: 2015.2.0
|
||||||
|
|
||||||
CLI Example::
|
CLI Example::
|
||||||
|
|
||||||
salt '*' cmd.shells
|
salt '*' cmd.shells
|
||||||
|
Loading…
Reference in New Issue
Block a user