Mercurial > hgrepos > Python > libs > ConfigMix
diff configmix/variables.py @ 282:da1596034954
Implemented an "AWS" namespace to retrieve some AWS-specific metadata
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 07 Dec 2020 01:06:33 +0100 |
| parents | ff964825a75a |
| children | eed16a1ec8f3 |
line wrap: on
line diff
--- a/configmix/variables.py Mon Oct 05 09:25:11 2020 +0200 +++ b/configmix/variables.py Mon Dec 07 01:06:33 2020 +0100 @@ -215,3 +215,9 @@ add_varns("ENV", _envlookup) add_varns("OS", _oslookup) add_varns("PY", _pylookup) +try: + from .extras import aws +except ImportError: + pass +else: + add_varns("AWS", aws._awslookup)
