Skip to content

Commit

Permalink
Fix string conversion bug
Browse files Browse the repository at this point in the history
Increment config template version
  • Loading branch information
foodprocessor committed Aug 30, 2024
1 parent fc7a793 commit 153a8d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/cloudfuse/child_process_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ CloudfuseMngr::CloudfuseMngr()
{
std::string systemName = getSystemName();
// NOTE: increment the version number when the config template changes
templateVersionString = "template-version: 0.1";
templateVersionString = "template-version: 0.2";
std::string config_template = templateVersionString + R"(
allow-other: true
logging:
Expand Down
4 changes: 2 additions & 2 deletions src/lib/cloudfuse/child_process_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ CloudfuseMngr::CloudfuseMngr()
{
std::string systemName = getSystemName();
// NOTE: increment the version number when the config template changes
templateVersionString = "template-version: 0.1";
templateVersionString = "template-version: 0.2";
std::string config_template = templateVersionString + R"(
allow-other: true
logging:
Expand Down Expand Up @@ -271,7 +271,7 @@ processReturn CloudfuseMngr::genS3Config(const std::string accessKeyId, const st
const std::string aws_secret_access_key_env = "AWS_SECRET_ACCESS_KEY=" + secretAccessKey;
const std::string endpoint_env = "ENDPOINT=" + endpoint;
const std::string bucket_name_env = "BUCKET_NAME=" + bucketName;
const std::string bucket_size_env = "DISPLAY_CAPACITY=" + bucketSizeMb;
const std::string bucket_size_env = "DISPLAY_CAPACITY=" + std::to_string(bucketSizeMb);
const std::string envp = aws_access_key_id_env + '\0' + aws_secret_access_key_env + '\0' + endpoint_env + '\0' +
bucket_name_env + '\0' + bucket_size_env + '\0';

Expand Down

0 comments on commit 153a8d4

Please sign in to comment.