Skip to content

Commit

Permalink
Switch to an entry_point
Browse files Browse the repository at this point in the history
  • Loading branch information
nhandler committed Oct 3, 2016
1 parent 59efc6c commit 1ecc61f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions paasta_tools/cleanup_maintenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def reserve_all_resources_on_draining_hosts():
reserve_all_resources(hostnames=get_draining_hosts())


def cleanup_maintenance():
def main():
log.debug("Cleaning up maintenance cruft")
parse_args()

Expand All @@ -83,6 +83,6 @@ def cleanup_maintenance():


if __name__ == "__main__":
if cleanup_maintenance():
if main():
sys.exit(0)
sys.exit(1)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
'paasta_tools/autoscale_all_services.py',
'paasta_tools/check_marathon_services_replication.py',
'paasta_tools/cleanup_marathon_jobs.py',
'paasta_tools/cleanup_maintenance.py',
'paasta_tools/paasta_deploy_chronos_jobs',
'paasta_tools/deploy_marathon_services',
'paasta_tools/generate_all_deployments',
Expand Down Expand Up @@ -102,6 +101,7 @@
'paasta_list_chronos_jobs=paasta_tools.list_chronos_jobs:main',
'paasta_setup_chronos_job=paasta_tools.setup_chronos_job:main',
'paasta_chronos_rerun=paasta_tools.chronos_rerun:main',
'paasta_cleanup_maintenance=paasta_tools.cleanup_maintenance:main',
],
'paste.app_factory': [
'paasta-api-config=paasta_tools.api.api:make_app'
Expand Down

0 comments on commit 1ecc61f

Please sign in to comment.