Commit 18fffec7 authored by Antoine Catton's avatar Antoine Catton

Refactor “run” function to “main”.

parent 6bf80423
......@@ -62,7 +62,7 @@ setup(name=name,
'equeue = slapos.equeue:main',
'pubsubserver = slapos.pubsub:main',
'pubsubnotifier = slapos.pubsub.notifier:main',
'logfollower = slapos.logfollower:run',
'logfollower = slapos.logfollower:main',
'runafter = slapos.runafter:main',
]
},
......
......@@ -89,7 +89,7 @@ def follow_each_line(filepath, rotated):
finally:
os.close(follow_fd)
def run():
def main():
parser = argparse.ArgumentParser(description="Log follower.")
parser.add_argument('--callback', '-c', help="Executable to call once the "
......@@ -163,4 +163,4 @@ def run():
if __name__ == '__main__':
import sys
sys.exit(run())
sys.exit(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