Commit 25e4724b authored by David Wilson's avatar David Wilson

A few more mitogen.slave/master changes

parent 708b742a
...@@ -12,7 +12,7 @@ mitogen Package ...@@ -12,7 +12,7 @@ mitogen Package
.. automodule:: mitogen .. automodule:: mitogen
.. autodata:: mitogen.slave .. autodata:: mitogen.master
.. autodata:: mitogen.context_id .. autodata:: mitogen.context_id
.. autodata:: mitogen.parent_id .. autodata:: mitogen.parent_id
......
...@@ -106,5 +106,5 @@ def main(router): ...@@ -106,5 +106,5 @@ def main(router):
for x in xrange(10): for x in xrange(10):
print context.call(run_module, 'ansible.modules.core.commands.command', 'hostname') print context.call(run_module, 'ansible.modules.core.commands.command', 'hostname')
if __name__ == '__main__' and not mitogen.slave: if __name__ == '__main__' and mitogen.master:
mitogen.utils.run_with_router(main) mitogen.utils.run_with_router(main)
...@@ -18,5 +18,5 @@ def main(): ...@@ -18,5 +18,5 @@ def main():
broker.shutdown() broker.shutdown()
broker.join() broker.join()
if __name__ == '__main__' and not mitogen.slave: if __name__ == '__main__' and mitogen.master:
main() main()
...@@ -33,5 +33,5 @@ def main(broker): ...@@ -33,5 +33,5 @@ def main(broker):
#context.call(mitogen.utils.log_to_file, '/tmp/log') #context.call(mitogen.utils.log_to_file, '/tmp/log')
context.call(serve_django_app, 'webproject.settings') context.call(serve_django_app, 'webproject.settings')
if __name__ == '__main__' and not mitogen.slave: if __name__ == '__main__' and mitogen.master:
mitogen.utils.run_with_broker(main) mitogen.utils.run_with_broker(main)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment