Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: replace env var with runtime values in run_sh (#2254)
## Description: Env vars weren't being replaced with runtime value in `run_sh` eg. ``` def run(plan, args): database = plan.add_service(name="database", config=ServiceConfig(image="postgres:latest")) plan.run_sh( run="echo $VAR_1", env_vars={ "VAR_1": database.ip_address } ) ``` used to output ``` Command returned with exit code '0' and the following output: -------------------- {{kurtosis:b49259098950411ba1e409e8a749c562:ip_address.runtime_value}} -------------------- ``` but now we get: ``` Command returned with exit code '0' and the following output: -------------------- 172.16.24.5 -------------------- ``` ## Is this change user facing? YES
- Loading branch information
Showing
2 changed files
with
51 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters