do not close file, flush is enough for now - otherwise it might get deleted in case of the temp file solution

This commit is contained in:
Tino Lange
2019-06-12 12:53:55 +02:00
parent 15c5734878
commit d14109df28
-1
View File
@@ -563,7 +563,6 @@ def main():
else: else:
pcmd = 'printf \'' + bugs + '{0}\''.format(cookie) pcmd = 'printf \'' + bugs + '{0}\''.format(cookie)
print() print()
conf['openconnect_certs'].close()
if conf.get('execute', '').lower() in ['1', 'true']: if conf.get('execute', '').lower() in ['1', 'true']:
cmd = shlex.split(cmd) cmd = shlex.split(cmd)
cmd = [os.path.expandvars(os.path.expanduser(x)) for x in cmd] cmd = [os.path.expandvars(os.path.expanduser(x)) for x in cmd]