Skip to content

Commit

Permalink
bugfix: 修改GSE_ENVIRON_WIN_DIR 默认路径 (closed #1829)
Browse files Browse the repository at this point in the history
  • Loading branch information
wyyalt committed Sep 19, 2023
1 parent 03326fa commit c57f129
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
class PushEnvironFilesTestCaseMixin:

GSE_ENVIRON_DIR: str = "/etc/sysconfig/gse/ce/environ.sh"
GSE_ENVIRON_WIN_DIR: str = "C:\\Windows\\System32\\config\\gse\\test"
GSE_ENVIRON_WIN_DIR: str = "C:\\\\Windows\\\\System32\\\\config\\\\gse\\\\test"

OVERWRITE_OBJ__KV_MAP = {
settings: {
Expand Down
2 changes: 1 addition & 1 deletion apps/mock_data/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

GSE_ENVIRON_DIR = "/etc/sysconfig/gse/bk_test/user_conf"

GSE_ENVIRON_WIN_DIR = "C:\\Windows\\System32\\config\\gse\\bk_test\\user_conf"
GSE_ENVIRON_WIN_DIR = "C:\\\\Windows\\\\System32\\\\config\\\\gse\\\\bk_test\\\\user_conf"


class MockReturnType(EnhanceEnum):
Expand Down
2 changes: 1 addition & 1 deletion docs/solution/how-to-install-agent2.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export GSE_VERSION="V2"
export BKAPP_BK_GSE_APIGATEWAY="{{ BKAPP_BK_GSE_APIGATEWAY }}"
export GSE_ENABLE_PUSH_ENVIRON_FILE="True"
export GSE_ENVIRON_DIR="/etc/sysconfig/gse/{{ ENV }}"
export GSE_ENVIRON_WIN_DIR="C:\\Windows\\System32\\config\\gse\\{{ ENV }}"
export GSE_ENVIRON_WIN_DIR="C:\\\\Windows\\\\System32\\\\config\\\\gse\\\\{{ ENV }}"
export GSE_CERT_PATH="{{ GSE_CERT_PATH }}"
```

Expand Down
2 changes: 1 addition & 1 deletion env/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@

# GSE 环境变量目录(Windows)
GSE_ENVIRON_WIN_DIR = get_type_env(
key="GSE_ENVIRON_WIN_DIR", default="C:\\Windows\\System32\\config\\gse\\bk\\user_conf", _type=str
key="GSE_ENVIRON_WIN_DIR", default="C:\\\\Windows\\\\System32\\\\config\\\\gse\\\\bk\\\\user_conf", _type=str
)

# ===============================================================================
Expand Down

0 comments on commit c57f129

Please sign in to comment.