]> git.llucax.com Git - software/pymin.git/commitdiff
Remove duplicated code.
authorLeandro Lucarella <llucax@gmail.com>
Mon, 12 May 2008 15:12:00 +0000 (12:12 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Mon, 12 May 2008 15:30:10 +0000 (12:30 -0300)
pymin/services/vpn/__init__.py

index fa5d5ce485bf011b31c49571e182a5db3a8f63b9..dead949d02a8506d4e335e68bc19c5e5bb25aad8 100644 (file)
@@ -160,10 +160,6 @@ class VpnHandler(Restorable, ConfigWriter,
                         log.debug(u'VpnHandler._write_config: creating key...')
                         call(('tincd', '-n', v.vpn_src, '-K', '<', '/dev/null'))
                         #open the created files and load the keys
-                        f = file(path.join(self._config_writer_cfg_dir,
-                                            v.vpn_src, 'rsa_key.priv'), 'r')
-                        priv = f.read()
-                        f.close()
                         f = file(path.join(self._config_writer_cfg_dir,
                                             v.vpn_src, 'rsa_key.pub'), 'r')
                         pub = f.read()