mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 16:22:18 -04:00
Remove unused version argument.
This commit is contained in:
parent
49cdfcec06
commit
a66500ea38
1 changed files with 3 additions and 10 deletions
|
|
@ -25,8 +25,7 @@ class Installer(plugins_common.Plugin):
|
|||
def __init__(self,
|
||||
policy_config,
|
||||
postfix_dir,
|
||||
fixup=False,
|
||||
version=None):
|
||||
fixup=False):
|
||||
self.fixup = fixup
|
||||
self.postfix_dir = postfix_dir
|
||||
self.policy_config = policy_config
|
||||
|
|
@ -43,9 +42,6 @@ class Installer(plugins_common.Plugin):
|
|||
self.policy_lines = []
|
||||
self.new_cf = ""
|
||||
|
||||
# Set in .prepare() unless running in a test
|
||||
self.postfix_version = version
|
||||
|
||||
def find_postfix_cf(self):
|
||||
"Search far and wide for the correct postfix configuration file"
|
||||
return os.path.join(self.postfix_dir, "main.cf")
|
||||
|
|
@ -187,10 +183,7 @@ class Installer(plugins_common.Plugin):
|
|||
"""
|
||||
# XXX ensure we raise the right kinds of exceptions
|
||||
|
||||
if not self.postfix_version:
|
||||
self.postfix_version = self.get_version()
|
||||
|
||||
if self.postfix_version < (2, 11, 0):
|
||||
if self.get_version() < (2, 11, 0):
|
||||
raise errors.NotSupportedError('Postfix version is too old')
|
||||
|
||||
# Postfix has changed support for TLS features, supported protocol versions
|
||||
|
|
@ -273,7 +266,7 @@ class Installer(plugins_common.Plugin):
|
|||
"Version: {version}".format(
|
||||
os.linesep,
|
||||
root=self.postfix_dir,
|
||||
version='.'.join([str(i) for i in self.postfix_version]))
|
||||
version='.'.join([str(i) for i in self.get_version()]))
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue