Commit be2492dc authored by Wei Shoulin's avatar Wei Shoulin
Browse files

fix version bug

parent a1f4d9c0
Pipeline #2161 passed with stage
...@@ -21,7 +21,7 @@ class Delegate(object): ...@@ -21,7 +21,7 @@ class Delegate(object):
log.warn("enviroment variable CSST_DFS_API_MODE is not set, use default: /opt/temp/csst") log.warn("enviroment variable CSST_DFS_API_MODE is not set, use default: /opt/temp/csst")
self.local_path = "/opt/temp/csst" self.local_path = "/opt/temp/csst"
try: try:
from csst_dfs_api_local._version import version as local_version from csst_dfs_api_local.version import __version__ as local_version
except ImportError: except ImportError:
raise CSSTFatalException("please install csst_dfs_api_local firstly.") raise CSSTFatalException("please install csst_dfs_api_local firstly.")
...@@ -30,7 +30,7 @@ class Delegate(object): ...@@ -30,7 +30,7 @@ class Delegate(object):
if not self.gateway: if not self.gateway:
raise CSSTGenericException("enviroment variable CSST_DFS_GATEWAY is not set") raise CSSTGenericException("enviroment variable CSST_DFS_GATEWAY is not set")
try: try:
from csst_dfs_api_cluster._version import version as cluster_version from csst_dfs_api_cluster.version import __version__ as cluster_version
except ImportError: except ImportError:
raise CSSTFatalException("please install csst_dfs_api_cluster firstly.") raise CSSTFatalException("please install csst_dfs_api_cluster firstly.")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment