mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix colored output
This commit is contained in:
parent
0b38c75a28
commit
becaa7d01f
1 changed files with 6 additions and 1 deletions
|
@ -802,7 +802,7 @@ class TestDaemon(object):
|
|||
Generate keys and start an ssh daemon on an alternate port
|
||||
'''
|
||||
sys.stdout.write(
|
||||
' * {LIGHT_GREEN}Starting {0} ... STARTED!\n{ENDC}'.format(
|
||||
' * {LIGHT_GREEN}Starting {0} ... {ENDC}'.format(
|
||||
'SSH server',
|
||||
**self.colors
|
||||
)
|
||||
|
@ -958,6 +958,11 @@ class TestDaemon(object):
|
|||
with salt.utils.fopen(os.path.join(TMP_CONF_DIR, 'roster'), 'a') as roster:
|
||||
roster.write(' user: {0}\n'.format(pwd.getpwuid(os.getuid()).pw_name))
|
||||
roster.write(' priv: {0}/{1}'.format(TMP_CONF_DIR, 'key_test'))
|
||||
sys.stdout.write(
|
||||
' {LIGHT_GREEN}STARTED!\n{ENDC}'.format(
|
||||
**self.colors
|
||||
)
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def config(cls, role):
|
||||
|
|
Loading…
Add table
Reference in a new issue