Skip to content

Commit

Permalink
fix: Fix error in parsing YAML and optimize the config sample (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nativu5 authored Apr 12, 2024
1 parent 59c30b3 commit c6bea1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion etc/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ DomainSuffix: riley.local
DbConfigPath: /etc/crane/database.yaml

# Data storage settings
CraneBaseDir: /var/crane
CraneBaseDir: /var/crane/

# Ctld settings
# debug level of cranectld
Expand Down
2 changes: 1 addition & 1 deletion src/CraneCtld/CraneCtld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void ParseConfig(int argc, char** argv) {
if (config["CraneCtldMutexFilePath"])
g_config.CraneCtldMutexFilePath =
g_config.CraneBaseDir +
config["CranedMutexFilePath"].as<std::string>();
config["CraneCtldMutexFilePath"].as<std::string>();
else
g_config.CraneCtldMutexFilePath =
g_config.CraneBaseDir + kDefaultCraneCtldMutexFile;
Expand Down

0 comments on commit c6bea1d

Please sign in to comment.