Skip to content

Commit

Permalink
Merge pull request #38 from ichiro-its/hotfix/fix-action-naming
Browse files Browse the repository at this point in the history
[Sprint 22/23 | PD-383] - [Hotfix] Fix Action Naming
  • Loading branch information
borednuna authored Dec 6, 2023
2 parents ea17084 + 4746849 commit 7e4cffe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/akushon/action/node/action_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ void ActionManager::load_config(const std::string & path)
for (int i = path.length(); i < file_name.length() - extension_json.length(); i++) {
name += file_name[i];
}

// remove "/" from the start of the name string
name.erase(0, 1);
try {
std::ifstream file(file_name);
nlohmann::json action_data = nlohmann::json::parse(file);
Expand Down

0 comments on commit 7e4cffe

Please sign in to comment.