mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Remove redundent close call
This commit is contained in:
parent
b2ae5889b7
commit
e37a93a1ca
@ -102,7 +102,6 @@ class SSHAuthKeyTestCase(TestCase, LoaderModuleMockMixin):
|
||||
# Add empty line for #41335
|
||||
_fh.write(empty_line)
|
||||
_fh.write('{0} {1} {2} {3}'.format(options, enc, key, email))
|
||||
_fh.close()
|
||||
|
||||
with patch.dict(ssh.__salt__, {'user.info': MagicMock(return_value={})}):
|
||||
with patch('salt.modules.ssh._get_config_file', MagicMock(return_value=temp_file.name)):
|
||||
|
Loading…
Reference in New Issue
Block a user