File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,9 @@ def display_ci_links(config_data):
168
168
j = j + 1
169
169
ci_name_list .append (ci_name )
170
170
print (j ,'' ,ci_name )
171
+ j = j + 1
172
+ print (j , " All" )
173
+
171
174
172
175
option = input ("Select the required ci's serial number with a space " )
173
176
@@ -179,8 +182,11 @@ def display_ci_links(config_data):
179
182
ci_to_int = int (ci )
180
183
if 0 < ci_to_int <= len (config_data ):
181
184
options_int_list .append (ci_to_int )
185
+ elif ci_to_int == len (config_data ) + 1 :
186
+ for j in range (1 , len (config_data )+ 1 ):
187
+ options_int_list .append (j )
182
188
else :
183
- return_value = "Enter the options in range of 1 to " + str (len (config_data ))
189
+ return_value = "Enter the options in range of 1 to " + str (len (config_data )+ 1 )
184
190
print (return_value )
185
191
return "ERROR"
186
192
except ValueError :
@@ -189,9 +195,13 @@ def display_ci_links(config_data):
189
195
for ci_name in config_data .keys ():
190
196
j = j + 1
191
197
ci_name_list .append (ci_name )
198
+
192
199
193
200
selected_ci = config_vars .get ('Settings' , 'selected_ci' )
194
201
options_int_list = [int (value ) for value in selected_ci .split (',' )]
202
+ if len (ci_name_list )+ 1 in options_int_list :
203
+ options_int_list = [x for x in range (1 , len (ci_name_list )+ 1 )]
204
+
195
205
196
206
for i in options_int_list :
197
207
config_temp_data = {ci_name_list [i - 1 ]: config_data [ci_name_list [i - 1 ]]}
You can’t perform that action at this time.
0 commit comments