Ensuring that we have default options for source plugins. (#961)

This commit is contained in:
kevgliss 2017-10-05 17:27:45 -07:00 committed by GitHub
parent e0d9443141
commit e0d2fb0de1
4 changed files with 5 additions and 3 deletions

View File

@ -29,7 +29,7 @@ class ExportDestinationPlugin(DestinationPlugin):
@property @property
def options(self): def options(self):
return list(self.default_options) + self.additional_options return self.default_options + self.additional_options
def export(self, body, private_key, cert_chain, options): def export(self, body, private_key, cert_chain, options):
export_plugin = self.get_option('exportPlugin', options) export_plugin = self.get_option('exportPlugin', options)

View File

@ -46,7 +46,7 @@ class ExpirationNotificationPlugin(NotificationPlugin):
@property @property
def options(self): def options(self):
return list(self.default_options) + self.additional_options return self.default_options + self.additional_options
def send(self, notification_type, message, targets, options, **kwargs): def send(self, notification_type, message, targets, options, **kwargs):
raise NotImplementedError raise NotImplementedError

View File

@ -33,4 +33,4 @@ class SourcePlugin(Plugin):
@property @property
def options(self): def options(self):
return list(self.default_options) + self.additional_options return self.default_options + self.additional_options

View File

@ -349,6 +349,8 @@ class DigiCertCISSourcePlugin(SourcePlugin):
author = 'Kevin Glisson' author = 'Kevin Glisson'
author_url = 'https://github.com/netflix/lemur.git' author_url = 'https://github.com/netflix/lemur.git'
additional_options = []
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
"""Initialize source with appropriate details.""" """Initialize source with appropriate details."""
required_vars = [ required_vars = [