File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1297,6 +1297,8 @@ def update_list_of_dicts_with_values_from_config(
1297
1297
return
1298
1298
inputs_copy = copy .deepcopy (input_list )
1299
1299
inputs_from_config = get_sagemaker_config_value (sagemaker_session , config_key_path ) or []
1300
+ unmodified_inputs_from_config = copy .deepcopy (inputs_from_config )
1301
+
1300
1302
for i in range (min (len (input_list ), len (inputs_from_config ))):
1301
1303
dict_from_inputs = input_list [i ]
1302
1304
dict_from_config = inputs_from_config [i ]
@@ -1316,11 +1318,12 @@ def update_list_of_dicts_with_values_from_config(
1316
1318
# Don't do the merge, Union parameters are not obeyed.
1317
1319
continue
1318
1320
input_list [i ] = dict_from_config
1319
- if inputs_from_config :
1321
+
1322
+ if unmodified_inputs_from_config :
1320
1323
print (
1321
1324
"[Sagemaker Config - applied value]\n " ,
1322
1325
"config key = {}\n " .format (config_key_path ),
1323
- "config value = {}\n " .format (inputs_from_config ),
1326
+ "config value = {}\n " .format (unmodified_inputs_from_config ),
1324
1327
"source value = {}\n " .format (inputs_copy ),
1325
1328
"combined value that will be used = {}\n " .format (input_list ),
1326
1329
)
You can’t perform that action at this time.
0 commit comments