diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2019-09-10 17:29:46 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2019-12-31 13:48:01 -0800 |
commit | 9cc013cc0fbff030be386ed3af5f6a826b97ca5f (patch) | |
tree | b1e87f0fcc6f891b687ba75969929ee0aaf55f1d /bin | |
parent | 58cb4e5241dc5f1f707e4fbaad59759d4b982535 (diff) | |
download | spack-9cc013cc0fbff030be386ed3af5f6a826b97ca5f.tar.gz spack-9cc013cc0fbff030be386ed3af5f6a826b97ca5f.tar.bz2 spack-9cc013cc0fbff030be386ed3af5f6a826b97ca5f.tar.xz spack-9cc013cc0fbff030be386ed3af5f6a826b97ca5f.zip |
modules: make the module hook more robust
The module hook would previously fail if there were no enabled module types.
- Instead of looking for a `KeyError`, default to empty list when the
config variable is not present.
- Convert lambdas to real functions for clarity.
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions