mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
commit
1e86093013
1 changed files with 1 additions and 1 deletions
|
@ -1247,7 +1247,7 @@ def tty(device, echo=None):
|
|||
return {'Error': 'The specified device is not a valid TTY'}
|
||||
|
||||
ret = subprocess.call(['echo', echo, '>', teletype], shell=False, stdout=open(os.devnull, 'wb'))
|
||||
if ret == 0:
|
||||
if ret == 0:
|
||||
return {
|
||||
'Success': 'Message was successfully echoed to {0}'.format(teletype)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue