This used to live in the old pub-solar/os repository in the `momo/main` branch. This commit changes that so this repository has all code from terraform to nix.
10 lines
208 B
Python
10 lines
208 B
Python
#! /usr/bin/env python2
|
|
import os
|
|
import subprocess
|
|
|
|
def get_env(key):
|
|
return os.getenv(key)
|
|
|
|
def get_secret(*attributes):
|
|
return subprocess.check_output(["secret-tool", "lookup"] + list(attributes))
|