Merge ~brad-figg/+git/kteam-tools:cranky-config-environment-variable into ~canonical-kernel/+git/kteam-tools:master
Proposed by
Brad Figg
Status: | Needs review |
---|---|
Proposed branch: | ~brad-figg/+git/kteam-tools:cranky-config-environment-variable |
Merge into: | ~canonical-kernel/+git/kteam-tools:master |
Diff against target: |
12 lines (+2/-0) 1 file modified
cranky/crl/config.py (+2/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Cory Todd (community) | Needs Fixing | ||
Canonical Kernel | Pending | ||
Review via email:
|
Description of the change
This is a one line change and I think the commit message says it all.
To post a comment you must log in.
This causes a runtime error if the CRANKY_CONFIG_FILE env is not set. By default this key will not exist so we should use something like this to say "use the env if set otherwise use whatever filename was provided".
filename = os.getenv( "CRANKY_ CONFIG_ FILE", filename)