Closed ericroy closed 6 years ago
Currently, recursive string interpolation doesn't recurse into lists. It should be pretty easy to add a case to handle this here: https://github.com/aequitas/concourse-http-api-resource/blob/master/assets/resource.py#L103
eg:
for k, v in data.items(): if isinstance(k, str): k = k.format(**values) if isinstance(v, str): v = v.format(**values) elif isinstance(v, dict): v = self._interpolate(v, values) elif isinstance(v, list): v = [self._interpolate(o, values) for o in v]
sorry for the late reply, fixed in next release.
Currently, recursive string interpolation doesn't recurse into lists. It should be pretty easy to add a case to handle this here: https://github.com/aequitas/concourse-http-api-resource/blob/master/assets/resource.py#L103
eg: