Skip to content

Commit 7311bc2

Browse files
committed
set debug = False
1 parent e351787 commit 7311bc2

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/warnet/control.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def _run(
261261
source_dir,
262262
additional_args: tuple[str],
263263
namespace: Optional[str],
264-
):
264+
) -> str:
265265
namespace = get_default_namespace_or(namespace)
266266

267267
scenario_path = Path(scenario_file).resolve()
@@ -362,6 +362,8 @@ def filter(path):
362362
print("Deleting pod...")
363363
delete_pod(name, namespace=namespace)
364364

365+
return name
366+
365367

366368
@click.command()
367369
@click.argument("pod_name", type=str, default="")

src/warnet/deploy.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@
3030
HookValue,
3131
WarnetContent,
3232
)
33-
from .control import _run
33+
from .control import _logs, _run
3434
from .k8s import (
3535
get_default_namespace,
3636
get_default_namespace_or,
3737
get_mission,
3838
get_namespaces_by_type,
3939
wait_for_ingress_controller,
40+
wait_for_pod,
4041
wait_for_pod_ready,
4142
)
4243
from .process import run_command, stream_command
@@ -379,13 +380,15 @@ def deploy_network(directory: Path, debug: bool = False, namespace: Optional[str
379380
p.join()
380381

381382
if needs_ln_init:
382-
_run(
383+
name = _run(
383384
scenario_file=SCENARIOS_DIR / "ln_init.py",
384-
debug=True,
385+
debug=False,
385386
source_dir=SCENARIOS_DIR,
386387
additional_args=None,
387388
namespace=namespace,
388389
)
390+
wait_for_pod(name, namespace=namespace)
391+
_logs(pod_name=name, follow=True, namespace=namespace)
389392

390393

391394
def deploy_single_node(node, directory: Path, debug: bool, namespace: str):

0 commit comments

Comments
 (0)