Skip to content

Commit

Permalink
Merge pull request #9 from agiliq/add_exit_code
Browse files Browse the repository at this point in the history
Returned exit code 1 in case the project is not production ready.
  • Loading branch information
shabda committed Dec 26, 2014
2 parents 1614f3f + 6ba2ebc commit 1fca409
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prodready/management/commands/is_it_ready.py
Expand Up @@ -24,6 +24,8 @@ def write_result(self, messages):
def handle(self, *args, **options):
messages = Validations().run(options)
self.write_result(messages)
if messages:
exit(1)


class Validations(object):
Expand Down

0 comments on commit 1fca409

Please sign in to comment.