Skip to content

Commit

Permalink
chore: Update variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Jun 24, 2024
1 parent d1361db commit d6310c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/ai/backend/storage/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async def inspect_server_status(cli_ctx: CliContextInfo, storage_proxy_pid: int)
path_type=pathlib.Path,
),
default=None,
help="The config file path. (default: ./agent.toml and /etc/backend.ai/agent.toml)",
help="The config file path. (default: ./storage-proxy.toml and /etc/backend.ai/storage-proxy.toml)",
)
@click.option(
"--debug",
Expand All @@ -78,7 +78,7 @@ def status(
systemctl: bool = False,
) -> None:
"""
Collect and print each storage proxy server process's status.
Collect and print each storage-proxy server process's status.
"""

try:
Expand All @@ -93,7 +93,7 @@ def status(

pid_filepath = local_config["storage-proxy"]["pid-file"]

if not pid_filepath.exists():
if not pid_filepath:
print(
'ConfigurationError: "pid-file" not found in the configuration file.',
file=sys.stderr,
Expand Down
4 changes: 2 additions & 2 deletions src/ai/backend/storage/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
_default_gid = os.getgid()


local_config_iv = (
storage_proxy_local_config_iv = (
t.Dict(
{
t.Key("storage-proxy"): t.Dict(
Expand Down Expand Up @@ -133,7 +133,7 @@ def load_local_config(
override_key(raw_cfg, ("logging", "pkg-ns", "ai.backend"), log_level)

try:
local_config = check(raw_cfg, local_config_iv)
local_config = check(raw_cfg, storage_proxy_local_config_iv)
local_config["_src"] = cfg_src_path
return local_config
except ConfigurationError as e:
Expand Down

0 comments on commit d6310c9

Please sign in to comment.