Ensuring that we have default options for source plugins. (#961)
This commit is contained in:
parent
e0d9443141
commit
e0d2fb0de1
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 = [
|
||||||
|
|
Loading…
Reference in New Issue