Ensuring new cli is available (#574)

This commit is contained in:
kevgliss 2016-12-08 09:11:19 -08:00 committed by GitHub
parent b5901a1570
commit be1415fbd4
2 changed files with 4 additions and 2 deletions

View File

@ -22,6 +22,7 @@ from flask_script.commands import ShowUrls, Clean, Server
from lemur.sources.cli import manager as source_manager from lemur.sources.cli import manager as source_manager
from lemur.certificates.cli import manager as certificate_manager from lemur.certificates.cli import manager as certificate_manager
from lemur.notifications.cli import manager as notification_manager
from lemur import database from lemur import database
from lemur.users import service as user_service from lemur.users import service as user_service
@ -627,8 +628,9 @@ def main():
manager.add_command("reset_password", ResetPassword()) manager.add_command("reset_password", ResetPassword())
manager.add_command("create_role", CreateRole()) manager.add_command("create_role", CreateRole())
manager.add_command("source", source_manager) manager.add_command("source", source_manager)
manager.add_command("report", Report())
manager.add_command("certificate", certificate_manager) manager.add_command("certificate", certificate_manager)
manager.add_command("notify", notification_manager)
manager.add_command("report", Report())
manager.run() manager.run()

View File

@ -13,7 +13,7 @@ manager = Manager(usage="Handles notification related tasks.")
@manager.command @manager.command
def notify(): def expirations():
""" """
Runs Lemur's notification engine, that looks for expired certificates and sends Runs Lemur's notification engine, that looks for expired certificates and sends
notifications out to those that have subscribed to them. notifications out to those that have subscribed to them.