File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -298,25 +298,27 @@ def new_internal(directory: Path, from_init=False):
298298 ),
299299 ]
300300 )
301+ custom_network_path = ""
301302 if proj_answers is None :
302303 click .secho ("Setup cancelled by user." , fg = "yellow" )
303304 return False
304305 if proj_answers ["custom_network" ]:
305306 click .secho ("\n Generating custom network..." , fg = "yellow" , bold = True )
306307 custom_network_path = inquirer_create_network (directory )
307308
308- click .echo (
309- f"\n Edit the network files found in { custom_network_path } before deployment if you want to customise the network."
310- )
309+ if custom_network_path :
310+ click .echo (
311+ f"\n Edit the network files found in { custom_network_path } before deployment if you want to customise the network."
312+ )
313+ click .echo ("\n When you're ready, run the following command to deploy this network:" )
314+ click .echo (f" warnet deploy { custom_network_path } " )
315+
311316 click .echo (
312317 "If you enabled fork-observer you must forward the port from the cluster to your local machine:\n "
313318 "`kubectl port-forward fork-observer 2323`\n "
314319 "fork-observer will then be available at web address: localhost:2323"
315320 )
316321
317- click .echo ("\n When you're ready, run the following command to deploy this network:" )
318- click .echo (f" warnet deploy { custom_network_path } " )
319-
320322
321323@click .command ()
322324def init ():
You can’t perform that action at this time.
0 commit comments