Fixes (#476)
* Ensures that Vault can accept bytes and strings. * Make restricted domains optional. * Fixing notify flag.
This commit is contained in:
@ -102,20 +102,20 @@ def export(cert, export_plugin):
|
||||
return plugin.export(cert.body, cert.chain, cert.private_key, export_plugin['pluginOptions'])
|
||||
|
||||
|
||||
def update(cert_id, owner, description, active, destinations, notifications, replaces, roles):
|
||||
def update(cert_id, owner, description, notify, destinations, notifications, replaces, roles):
|
||||
"""
|
||||
Updates a certificate
|
||||
:param cert_id:
|
||||
:param owner:
|
||||
:param description:
|
||||
:param active:
|
||||
:param notify:
|
||||
:param destinations:
|
||||
:param notifications:
|
||||
:param replaces:
|
||||
:return:
|
||||
"""
|
||||
cert = get(cert_id)
|
||||
cert.active = active
|
||||
cert.notify = notify
|
||||
cert.description = description
|
||||
cert.destinations = destinations
|
||||
cert.notifications = notifications
|
||||
|
@ -593,7 +593,7 @@ class Certificates(AuthenticatedResource):
|
||||
certificate_id,
|
||||
data['owner'],
|
||||
data['description'],
|
||||
data['active'],
|
||||
data['notify'],
|
||||
data['destinations'],
|
||||
data['notifications'],
|
||||
data['replacements'],
|
||||
|
Reference in New Issue
Block a user