Skip to content

Commit aef037a

Browse files
committed
fixes
1 parent 6ebe7d2 commit aef037a

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ docker-compose.override.yml
1818
docker-compose.yml
1919
generated-configs/
2020
infrahub_demo.egg-info
21+
queries/config/spine_test.gql
2122
scripts/debug/

scripts/bootstrap.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
def check_infrahub_ready(max_retries: int = 30, sleep_time: int = 2) -> bool:
5252
"""Check if Infrahub is ready to accept requests."""
53-
console.print("\n[bold cyan]→ Checking if Infrahub is ready...[/bold cyan]")
53+
console.print() # Add blank line for spacing
5454

5555
with Progress(
5656
SpinnerColumn(spinner_name="dots12", style="bold bright_magenta"),
@@ -67,7 +67,7 @@ def check_infrahub_ready(max_retries: int = 30, sleep_time: int = 2) -> bool:
6767
TimeElapsedColumn(),
6868
console=console,
6969
) as progress:
70-
task = progress.add_task("⏳ Waiting for Infrahub", total=max_retries)
70+
task = progress.add_task("→ Checking if Infrahub is ready", total=max_retries)
7171

7272
for attempt in range(max_retries):
7373
try:
@@ -120,7 +120,7 @@ def run_command(command: str, description: str, step: str, color: str = "cyan",
120120

121121
def wait_for_repository_sync(seconds: int = 120) -> None:
122122
"""Wait for repository synchronization with progress bar."""
123-
console.print(f"\n[bold yellow]⏳ Waiting for repository sync ({seconds} seconds)...[/bold yellow]")
123+
console.print() # Add blank line for spacing
124124

125125
with Progress(
126126
SpinnerColumn(spinner_name="dots12", style="bold bright_yellow"),
@@ -139,7 +139,7 @@ def wait_for_repository_sync(seconds: int = 120) -> None:
139139
TimeRemainingColumn(),
140140
console=console,
141141
) as progress:
142-
task = progress.add_task("🔄 Syncing repository", total=seconds)
142+
task = progress.add_task(f"⏳ Waiting for repository sync ({seconds}s)", total=seconds)
143143

144144
for _ in range(seconds):
145145
time.sleep(1)

scripts/create_proposed_change.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,12 @@ async def create_proposed_change(branch: str) -> int:
6060

6161
try:
6262
branches = await client.branch.all()
63-
branch_names = [b.name for b in branches]
63+
64+
# Handle both cases: branches as objects or as strings
65+
if branches and hasattr(branches[0], 'name'):
66+
branch_names = [b.name for b in branches]
67+
else:
68+
branch_names = list(branches)
6469

6570
if branch not in branch_names:
6671
console.print(f"[red]✗ Branch '[bold]{branch}[/bold]' does not exist[/red]")

0 commit comments

Comments
 (0)