Azure / InnovationEngine

An experiment in simplicity for complex environments
MIT License
34 stars 17 forks source link

Clean up the environment variable state file while running in cloud shell #101

Closed vmarcella closed 11 months ago

vmarcella commented 11 months ago

In order to save the state of variables exported in a scenario execution, we capture and save the environment variables into a file after each command gets executed. This allows the portal to source the environment variables from that file after the innovation engine exits so that the user has access to the environment variables exported during a scenario run. However, Cloud Shell exports the variable Fabric_NET-0-[Delegated] into the users environment which contains illegal characters for a bash variable name. This PR cleans up the environment variables file when running in Cloud Shell so that there are no errors when sourcing the environment variable file after ie finishes executing.