mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Fix unit tests for ssh
This commit is contained in:
parent
4209be843d
commit
3eca45e000
@ -92,7 +92,7 @@ class SSHAuthKeyTestCase(TestCase, LoaderModuleMockMixin):
|
||||
empty_line = '\n'
|
||||
comment_line = '# this is a comment \n'
|
||||
# Write out the authorized key to a temporary file
|
||||
temp_file = tempfile.NamedTemporaryFile(delete=False, mode='w+')
|
||||
temp_file = tempfile.NamedTemporaryFile(delete=False)
|
||||
# Add comment
|
||||
temp_file.write(comment_line)
|
||||
# Add empty line for #41335
|
||||
|
Loading…
Reference in New Issue
Block a user