Skip to content

Commit

Permalink
Added support for fetching Job Handler directory field from config fi…
Browse files Browse the repository at this point in the history
…le (#192)

* Added support for fetching Job Handler directory field from config file

* Clang Formatting
  • Loading branch information
HarshGandhi-AWS authored Nov 25, 2021
1 parent 4caced4 commit e1c1a2c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/config/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,12 @@ bool PlainConfig::Jobs::LoadFromJson(const Crt::JsonView &json)
enabled = json.GetBool(jsonKey);
}

jsonKey = JSON_KEY_HANDLER_DIR;
if (json.ValueExists(jsonKey))
{
handlerDir = FileUtils::ExtractExpandedPath(json.GetString(jsonKey).c_str());
}

return true;
}

Expand Down

0 comments on commit e1c1a2c

Please sign in to comment.