diff options
| author | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2022-11-20 20:33:13 +0000 |
|---|---|---|
| committer | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2022-11-20 20:33:13 +0000 |
| commit | 6b1b61f98813a58286e099d92767e01c2d40bc18 (patch) | |
| tree | a3613fba312e0f324bdbca28ec3d3d0b5e6f6e13 /util/helpers.py | |
| parent | 6a0e18aab79cefa8cd4917e9a6d121349f41eb3f (diff) | |
Redo deploy script
Diffstat (limited to 'util/helpers.py')
| -rw-r--r-- | util/helpers.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/util/helpers.py b/util/helpers.py new file mode 100644 index 0000000..5f970df --- /dev/null +++ b/util/helpers.py @@ -0,0 +1,13 @@ +import os + +OS_TYPE = os.getenv("OS_TYPE") + + +# Returns True if all preconditions pass +def check_preconditions(obj): + if "preconditions" in obj: + if ("os" in obj["preconditions"] + and obj["preconditions"]["os"] != OS_TYPE): + return False + + return True |
