Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deployment exits on windows #2070

Merged
merged 1 commit into from
Sep 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion autonomy/cli/helpers/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

"""Deployment helpers."""
import os
import shutil
import time
from pathlib import Path
from typing import Dict, List, Optional, Tuple
Expand Down Expand Up @@ -80,7 +81,7 @@

def _print_log(compose_app: docker_compose.TopLevelCommand) -> None:
"""Print docker container logs."""
terminal_width, _ = os.get_terminal_size()
terminal_width, _ = shutil.get_terminal_size()

Check warning on line 84 in autonomy/cli/helpers/deployment.py

View check run for this annotation

Codecov / codecov/patch

autonomy/cli/helpers/deployment.py#L84

Added line #L84 was not covered by tests
for service in compose_app.project.service_names:
try:
click.echo("=" * terminal_width)
Expand Down
Loading