@@ -290,7 +290,7 @@ def create_infrastructure(self, bypass_infrastructure_check: bool = False, allow
290290 should_proceed , new_index = _prompt_for_infrastructure_update (rg_name )
291291 if new_index is not None :
292292 # User selected option 2: Use a different index
293- print (f'🔄 Retrying infrastructure creation with index { new_index } ...\n ' )
293+ print (f'🔄 Retrying infrastructure creation with index { new_index } ...' )
294294 self .index = new_index
295295 # Recursively call create_infrastructure with the new index
296296 return self .create_infrastructure (bypass_infrastructure_check , allow_update )
@@ -1086,13 +1086,12 @@ def _prompt_for_infrastructure_update(rg_name: str) -> tuple[bool, int | None]:
10861086 """
10871087 print (f'✅ Infrastructure already exists: { rg_name } \n ' )
10881088 print ('🔄 Infrastructure Update Options:\n ' )
1089- print (' This infrastructure notebook can update the existing infrastructure.' )
1090- print (' Updates are additive and will:' )
1089+ print (' This infrastructure notebook can update the existing infrastructure. Updates are additive and will:\n ' )
10911090 print (' • Add new APIs and policy fragments defined in the infrastructure' )
10921091 print (' • Update existing infrastructure components to match the template' )
10931092 print (' • Preserve manually added samples and configurations\n ' )
10941093
1095- print ('ℹ️ Choose an option:' )
1094+ print ('ℹ️ Choose an option:\n ' )
10961095 print (' 1. Update the existing infrastructure (recommended)' )
10971096 print (' 2. Use a different index' )
10981097 print (' 3. Exit, then delete the existing resource group separately via the clean-up notebook\n ' )
@@ -1109,8 +1108,7 @@ def _prompt_for_infrastructure_update(rg_name: str) -> tuple[bool, int | None]:
11091108 try :
11101109 new_index_str = input ('\n Enter the desired index for the infrastructure: ' ).strip ()
11111110 if not new_index_str :
1112- print ('❌ Please enter a valid index number.' )
1113- continue
1111+ return False , None
11141112
11151113 new_index = int (new_index_str )
11161114 if new_index <= 0 :
0 commit comments