Skip to content

Commit 0196643

Browse files
committed
fix: move run_plugins command
1 parent e23a728 commit 0196643

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/warnet/deploy.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ def _deploy(directory, debug, namespace, to_all_users):
7373
"""Deploy a warnet with topology loaded from <directory>"""
7474
directory = Path(directory)
7575

76-
run_plugins(directory, HookValue.PRE_DEPLOY)
77-
7876
if to_all_users:
7977
namespaces = get_namespaces_by_type(WARGAMES_NAMESPACE_PREFIX)
8078
processes = []
@@ -87,6 +85,7 @@ def _deploy(directory, debug, namespace, to_all_users):
8785
return
8886

8987
if (directory / NETWORK_FILE).exists():
88+
run_plugins(directory, HookValue.PRE_DEPLOY)
9089
processes = []
9190
# Deploy logging CRD first to avoid synchronisation issues
9291
deploy_logging_crd(directory, debug)

0 commit comments

Comments
 (0)