Skip to content
Snippets Groups Projects
Commit cc4459bd authored by Felix A. Croes's avatar Felix A. Croes
Browse files

YDS-2382 When no EPIC server is configured, *httpCode = 0.

parent 089c0bb8
No related branches found
No related tags found
No related merge requests found
...@@ -109,7 +109,13 @@ extern "C" { ...@@ -109,7 +109,13 @@ extern "C" {
std::string value = parseMspForStr(valueIn); std::string value = parseMspForStr(valueIn);
std::string uuid = parseMspForStr(idInOut); std::string uuid = parseMspForStr(idInOut);
/* Retriece parameters from the credentials store. */ /* Bail if there is no EPIC server configured. */
if (!credentials.has("epic_url")) {
fillStrInMsParam(httpCodeOut, "0");
return 0;
}
/* Retrieve parameters from the credentials store. */
std::string url(credentials.get("epic_url")); std::string url(credentials.get("epic_url"));
std::string prefix(credentials.get("epic_handle_prefix")); std::string prefix(credentials.get("epic_handle_prefix"));
std::string key(credentials.get("epic_key")); std::string key(credentials.get("epic_key"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment