Skip to content

Commit 33a9330

Browse files
committed
deploy: if no plugins, don't print
Don't bother the user with messages from the plugin system if there are no plugin processes running.
1 parent 3b575d6 commit 33a9330

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/warnet/deploy.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,15 @@ def run_plugins(directory, hook_value: HookValue, namespace, annex: Optional[dic
181181
)
182182
sys.exit(1)
183183

184-
print(f"Starting {hook_value.value} plugins")
184+
if processes:
185+
print(f"Starting {hook_value.value} plugins")
185186
for process in processes:
186187
process.start()
187188

188189
for process in processes:
189190
process.join()
190-
print(f"Completed {hook_value.value} plugins")
191+
if processes:
192+
print(f"Completed {hook_value.value} plugins")
191193

192194

193195
def check_logging_required(directory: Path):

0 commit comments

Comments
 (0)