Skip to content

Commit

Permalink
Fixed types casting in arguments passing from CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
blackandred committed Jun 28, 2019
1 parent 48d42f6 commit b1cc713
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
CHANGES
=======

* Hotfix: Fixed 503 on HTTP caused by missing new params
* Updated suggestion in reference in docs
* Added --lazy flag
* Added --wait / WAIT\_TIME, secured \`domain-expiration\` check against CPU overload
Expand Down
5 changes: 3 additions & 2 deletions infracheck/infracheck/bin.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ def main():
project_dir = parsed.directory if parsed.directory else os.getcwd()
server_port = int(parsed.server_port if parsed.server_port else 7422)
server_path_prefix = parsed.server_path_prefix if parsed.server_path_prefix else ''
wait_time = int(parsed.wait_time)

app = Controller(project_dir, server_port, server_path_prefix,
parsed.db_path, parsed.wait, parsed.lazy, parsed.force)
parsed.db_path, wait_time, parsed.lazy, parsed.force)

if parsed.server:
app.spawn_server()
Expand Down Expand Up @@ -118,7 +119,7 @@ def main():
sys.exit(0)

# action: perform health checking
result = app.perform_checks(force=parsed.force, wait_time=parsed.wait, lazy=parsed.lazy)
result = app.perform_checks(force=parsed.force, wait_time=wait_time, lazy=parsed.lazy)
print(json.dumps(result, sort_keys=True, indent=4, separators=(',', ': ')))

if not result['global_status']:
Expand Down

0 comments on commit b1cc713

Please sign in to comment.