Skip to content

Commit 679b3ca

Browse files
committed
Avoid parsing strings in ConfigComponentResolver
1 parent c67c556 commit 679b3ca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

airbyte_cdk/sources/declarative/resolvers/config_components_resolver.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,11 @@ def resolve_components(
177177
)
178178

179179
path = [path.eval(self.config, **kwargs) for path in resolved_component.field_path]
180-
parsed_value = self._parse_yaml_if_possible(value)
180+
# Avoid parsing strings that are meant to be strings
181+
if not (isinstance(value, str) and valid_types == (str,)):
182+
parsed_value = self._parse_yaml_if_possible(value)
183+
else:
184+
parsed_value = value
181185
updated = dpath.set(updated_config, path, parsed_value)
182186

183187
if parsed_value and not updated and resolved_component.create_or_update:

0 commit comments

Comments
 (0)