From 379f652641d6d5911e90fd9fb1a4c75f514c925a Mon Sep 17 00:00:00 2001 From: David Wilson Date: Thu, 7 Sep 2017 02:49:15 +0530 Subject: [PATCH] Update for changed API --- examples/ansible_demo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ansible_demo.py b/examples/ansible_demo.py index 85138cbd..40d1e4c5 100644 --- a/examples/ansible_demo.py +++ b/examples/ansible_demo.py @@ -94,7 +94,7 @@ def run_module(module, raw_params=None, args=None): return e.dct -def main(broker): +def main(router): fmt = '%(asctime)s %(levelname).1s %(name)s: %(message)s' datefmt = '%H:%M:%S' level = logging.DEBUG @@ -107,4 +107,4 @@ def main(broker): print context.call(run_module, 'ansible.modules.core.commands.command', 'hostname') if __name__ == '__main__' and not econtext.slave: - econtext.utils.run_with_broker(main) + econtext.utils.run_with_router(main)