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):
298
298
),
299
299
]
300
300
)
301
+ custom_network_path = ""
301
302
if proj_answers is None :
302
303
click .secho ("Setup cancelled by user." , fg = "yellow" )
303
304
return False
304
305
if proj_answers ["custom_network" ]:
305
306
click .secho ("\n Generating custom network..." , fg = "yellow" , bold = True )
306
307
custom_network_path = inquirer_create_network (directory )
307
308
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
+
311
316
click .echo (
312
317
"If you enabled fork-observer you must forward the port from the cluster to your local machine:\n "
313
318
"`kubectl port-forward fork-observer 2323`\n "
314
319
"fork-observer will then be available at web address: localhost:2323"
315
320
)
316
321
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
-
320
322
321
323
@click .command ()
322
324
def init ():
You can’t perform that action at this time.
0 commit comments