-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolving shell environment variables name space conflicts with parm #28
Closed
TerrenceMcGuinness-NOAA
wants to merge
17
commits into
NOAA-EMC:develop
from
TerrenceMcGuinness-NOAA:config_env_xor
Closed
Changes from 14 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
26eb81d
excludes updating config dic with values that are in enviroment and i…
TerryMcGuinness-NOAA 90b2d79
added bash as shell when geting config env
TerryMcGuinness-NOAA 2e91edc
missed comma after shell in sub
TerryMcGuinness-NOAA bbeefc3
made sure bash can be anywere for subprocess in configure getting con…
TerryMcGuinness-NOAA b918dc4
Update src/wxflow/configuration.py
aerorahul 9d874ac
unskip in runner for configuration tests
TerryMcGuinness-NOAA 98a8ef0
removed skip configuration tests and used new method that checks for …
TerryMcGuinness-NOAA 8e4b3e1
resolved conflicts
TerryMcGuinness-NOAA 07aa4c0
restore correct assertion in config1 parse test
TerryMcGuinness-NOAA 404cf0a
added new solution that checkes in the scripts for name clashes and t…
TerryMcGuinness-NOAA 64d73f8
added the key search to include = so USER was not picked up
TerryMcGuinness-NOAA 9740026
removed Optoinal from import list
TerryMcGuinness-NOAA b8dd227
changed order of imports in configureation file due to unkown pynorms…
TerryMcGuinness-NOAA 86e31db
added dynamic regex with export
TerryMcGuinness-NOAA 57af2f5
updated regex in config
TerryMcGuinness-NOAA 761bcdf
Merge branch 'NOAA-EMC:develop' into config_env_xor
TerrenceMcGuinness-NOAA 5382a0e
simplfied version of _get_script_env classmethond in Configuration Class
TerryMcGuinness-NOAA File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be explained a bit?
The task is simple here; get a dictionary of key-value pairs set by a shell script.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old approach was faulty, this one (not intended to be used) resorted to using a regular expression to fish out any environment variable that is in the user spaces that is also in a config file. It is here only to show what is needed to pass the unit tests. I don't think this is good solution, so I'm thinking of another approach entirely to avoid chicken-before-egg dilemma that this will not solve.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes and then just check if the key is in both!