commit | 7d3c797689f60c904a7a2bc3dd923af2fe3ef379 | [log] [tgz] |
---|---|---|
author | Mohammed Naser <mnaser@vexxhost.com> | Mon Nov 07 10:54:56 2022 -0500 |
committer | Mohammed Naser <mnaser@vexxhost.com> | Mon Nov 07 10:55:43 2022 -0500 |
tree | 7735bd585aa16b3a248f27b7575920d03c9da63e | |
parent | cf9011e55ecd8680debfd3c091ce93b147b335cb [diff] [blame] |
feat(monitoring): add to operator
diff --git a/atmosphere/utils.py b/atmosphere/utils.py new file mode 100644 index 0000000..c44db96 --- /dev/null +++ b/atmosphere/utils.py
@@ -0,0 +1,8 @@ +import json + +import _jsonnet + + +def load_jsonnet_from_path(path: str) -> any: + raw = _jsonnet.evaluate_file(path) + return json.loads(raw)