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
|
||||
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):
|
||||
export_plugin = self.get_option('exportPlugin', options)
|
||||
|
|
|
@ -46,7 +46,7 @@ class ExpirationNotificationPlugin(NotificationPlugin):
|
|||
|
||||
@property
|
||||
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):
|
||||
raise NotImplementedError
|
||||
|
|
|
@ -33,4 +33,4 @@ class SourcePlugin(Plugin):
|
|||
|
||||
@property
|
||||
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_url = 'https://github.com/netflix/lemur.git'
|
||||
|
||||
additional_options = []
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""Initialize source with appropriate details."""
|
||||
required_vars = [
|
||||
|
|
Loading…
Reference in New Issue