Skip to content
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

pypyr.steps.envgetdefault #111

Closed
yaythomas opened this issue Jan 23, 2019 · 0 comments
Closed

pypyr.steps.envgetdefault #111

yaythomas opened this issue Jan 23, 2019 · 0 comments
Labels
enhancement new features type: step steps

Comments

@yaythomas
Copy link
Member

the env step get will fail with KeyError if the requested env var doesn't exist.

this step allows you to try and get the $ENV, and if it doesn't exist, assign a default value (e.g None).

envgetdefault:
       env: myenv
       dest: contextkeyhere
       default: defaultifnotexist
@yaythomas yaythomas added enhancement new features type: step steps labels Jan 23, 2019
@yaythomas yaythomas added this to To do in pypyr roadmap via automation Jan 23, 2019
yaythomas added a commit to pypyr/pypyr-example that referenced this issue Jan 24, 2019
yaythomas added a commit that referenced this issue Jan 24, 2019
yaythomas added a commit to pypyr/pypyr-example that referenced this issue Jan 24, 2019
yaythomas added a commit that referenced this issue Jan 24, 2019
yaythomas added a commit that referenced this issue Jan 24, 2019
pypyr roadmap automation moved this from To do to Done Jan 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement new features type: step steps
Projects
pypyr roadmap
  
Done
Development

No branches or pull requests

1 participant