Skip to content

Commit bd13ddf

Browse files
committed
Fix setting of configs
1 parent abb5af4 commit bd13ddf

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

metaflow/user_configs/config_options.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def process_configs(
331331
if val is None:
332332
missing_configs.add(name)
333333
to_return[name] = None
334-
flow_cls._flow_state[FlowStateItems.CONFIGS][name] = None
334+
flow_cls._flow_state.self_data[FlowStateItems.CONFIGS][name] = None
335335
continue
336336
if val.startswith(_CONVERTED_NO_FILE):
337337
no_file.append(name)
@@ -355,7 +355,9 @@ def process_configs(
355355
click_obj.delayed_config_exception = exc
356356
return None
357357
raise exc from e
358-
flow_cls._flow_state[FlowStateItems.CONFIGS][name] = read_value
358+
flow_cls._flow_state.self_data[FlowStateItems.CONFIGS][
359+
name
360+
] = read_value
359361
to_return[name] = (
360362
ConfigValue(read_value) if read_value is not None else None
361363
)
@@ -372,7 +374,9 @@ def process_configs(
372374
)
373375
continue
374376
# TODO: Support YAML
375-
flow_cls._flow_state[FlowStateItems.CONFIGS][name] = read_value
377+
flow_cls._flow_state.self_data[FlowStateItems.CONFIGS][
378+
name
379+
] = read_value
376380
to_return[name] = (
377381
ConfigValue(read_value) if read_value is not None else None
378382
)

0 commit comments

Comments
 (0)