Skip to content
Snippets Groups Projects
Commit 0750c8a4 authored by Erik Reid's avatar Erik Reid
Browse files

renamed main/cli

parent 702e96bd
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ def _validate_config(_ctx, _param, file):
'--force/--no-force',
default=False,
help="refresh inventory data even if it hasn't been updated")
def main(config, force):
def cli(config, force):
"""
Update BRIAN snmp checks based on Inventory Provider data.
"""
......@@ -85,4 +85,4 @@ def main(config, force):
if __name__ == '__main__':
main()
cli()
......@@ -16,4 +16,4 @@ Sensu checks for polling the data required by BRIAN.
:maxdepth: 2
:caption: Contents:
cli
main
......@@ -2,5 +2,5 @@
brian-polling-manager
===================================================
.. automodule:: brian_polling_manager.cli
.. automodule:: brian_polling_manager.main
......@@ -4,7 +4,7 @@ import tempfile
from click.testing import CliRunner
import responses
from brian_polling_manager import cli
from brian_polling_manager import main
@responses.activate
......@@ -16,7 +16,7 @@ def test_run_flashtest(config, mocked_sensu, mocked_inventory):
runner = CliRunner()
result = runner.invoke(
cli.main,
main.cli,
['--config', f.name, '--force']
)
assert result.exit_code == 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment