Skip to content

Commit

Permalink
chore: Removing requirement to validate vault (#39)
Browse files Browse the repository at this point in the history
Co-authored-by: Derek Roberts <derek.roberts@gmail.com>
  • Loading branch information
marcionemec-daitan and DerekRoberts authored Mar 29, 2024
1 parent ce00b63 commit fe7c181
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions sync/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ def required_variables_exists():
print("Error: teste variable is None")
ret = False

if os.environ.get("vtoken") is None:
print("Error: vtoken variable is None")
ret = False

if os.environ.get("vurl") is None:
print("Error: vurl variable is None")
ret = False

if os.environ.get("test_mode") is None:
print("Error: test mode variable is None")
ret = False
Expand All @@ -31,6 +23,7 @@ def required_variables_exists():
raise Exception("Not all required variables to execute a instance of Data Sync Engine exists.")


# -- Vault is deprecated
def testVault():
ret = True

Expand Down Expand Up @@ -81,7 +74,8 @@ def main() -> None:
if this_is_a_test in definitiion_of_yes:
print("Executing in Test mode")
required_variables_exists()
testVault()
# Vault disabled
# testVault()
else:
main()

0 comments on commit fe7c181

Please sign in to comment.