You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by zh...@apache.org on 2023/07/20 07:42:24 UTC

[dolphinscheduler-sdk-python] branch main updated: fix: Correct the bad env name of users tenant (#97)

This is an automated email from the ASF dual-hosted git repository.

zhongjiajie pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler-sdk-python.git


The following commit(s) were added to refs/heads/main by this push:
     new d1e25ff  fix: Correct the bad env name of users tenant (#97)
d1e25ff is described below

commit d1e25ff1dbacfdbc8eb7d13992d67b73ddd62e59
Author: Jay Chung <zh...@gmail.com>
AuthorDate: Thu Jul 20 15:42:18 2023 +0800

    fix: Correct the bad env name of users tenant (#97)
    
    fix: #94
---
 .dlc.json                               | 3 ++-
 src/pydolphinscheduler/configuration.py | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/.dlc.json b/.dlc.json
index bd24e4c..2e3e67c 100644
--- a/.dlc.json
+++ b/.dlc.json
@@ -20,6 +20,7 @@
   "retryCount": 10,
   "fallbackRetryDelay": "1000s",
   "aliveStatusCodes": [
-    200
+    200,
+    0
   ]
 }
diff --git a/src/pydolphinscheduler/configuration.py b/src/pydolphinscheduler/configuration.py
index 9d12afe..91ecba9 100644
--- a/src/pydolphinscheduler/configuration.py
+++ b/src/pydolphinscheduler/configuration.py
@@ -184,7 +184,7 @@ USER_PASSWORD = os.environ.get(
     "PYDS_USER_PASSWORD", configs.get("default.user.password")
 )
 USER_EMAIL = os.environ.get("PYDS_USER_EMAIL", configs.get("default.user.email"))
-USER_TENANT = os.environ.get("PYDS_USER_STATE", configs.get("default.user.tenant"))
+USER_TENANT = os.environ.get("PYDS_USER_TENANT", configs.get("default.user.tenant"))
 USER_PHONE = str(os.environ.get("PYDS_USER_PHONE", configs.get("default.user.phone")))
 USER_STATE = get_int(
     os.environ.get("PYDS_USER_STATE", configs.get("default.user.state"))