Skip to content

Commit a683cef

Browse files
authored
Merge pull request #8 from mtpontes/release/1.1.2
fix: fixed display of settings status in `config` command
2 parents 7e54963 + 8d91361 commit a683cef

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/api/views/config_view.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from src.constants.constants import ACCESS_KEY_ID, BUCKET_NAME, DATE_PATTERN, REGION, SECRET_ACCESS_KEY
1111

1212

13-
def configurations_table(credentials: AWSCredentialsDTO):
13+
def configurations_table(credentials: AWSCredentialsDTO) -> Table:
1414
table = Table(
1515
title="\nAWS Configuration", title_style="bold cyan", box=box.ROUNDED, show_header=False, padding=(0, 1)
1616
)
@@ -32,7 +32,7 @@ def configurations_table(credentials: AWSCredentialsDTO):
3232
return table
3333

3434

35-
def config_file_info_panel() -> None:
35+
def config_file_info_panel() -> Panel:
3636
return Panel(
3737
f"[dim]Configuration file: {ConfigService.CONFIG_FILE}[/dim]\n"
3838
f"[dim]Last modified: {_get_config_last_modified(ConfigService.CONFIG_FILE)}[/dim]",
@@ -63,7 +63,7 @@ def _get_config_last_modified(config_file: str) -> str:
6363
return "Unknown"
6464

6565

66-
def configurations_with_errors_table(errors: dict[str, str]) -> Panel:
66+
def configurations_with_errors_table(errors: dict[str, str]) -> Table:
6767
error_table = Table(
6868
title="\nConfiguration Status", title_style="bold red", box=box.ROUNDED, show_header=False, padding=(0, 1)
6969
)
@@ -92,6 +92,7 @@ def add_rows(table, errors):
9292
table.add_row(key_formatted, "[red]✗ Not configured[/red]")
9393

9494
add_rows(error_table, errors)
95+
return error_table
9596

9697

9798
def help_panel() -> Panel:

0 commit comments

Comments
 (0)