1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

Remove obsolete SuperNode::getConfigUri()

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
Steffen Vogel 2024-02-27 17:25:35 +01:00
parent 9247846805
commit b573644133
3 changed files with 3 additions and 7 deletions

View file

@ -90,7 +90,7 @@ public:
json_t *load(const std::string &u, bool resolveIncludes = true,
bool resolveEnvVars = true);
std::string &getConfigPath() { return configPath; }
std::string const & getConfigPath() const { return configPath; }
};
} // namespace node

View file

@ -67,8 +67,6 @@ protected:
struct timespec started; // The time at which the instance has been started.
std::string uri; // URI of configuration
Config config; // The configuration file.
public:
@ -143,9 +141,7 @@ public:
json_t *getConfig() { return config.root; }
std::string &getConfigPath() { return config.getConfigPath(); }
std::string getConfigUri() const { return uri; }
const std::string &getConfigPath() const { return config.getConfigPath(); }
int getAffinity() const { return affinity; }

View file

@ -78,7 +78,7 @@ public:
throw BadRequest("Parameter 'config' must be either a URL (string) or "
"a configuration (object)");
} else // If no config is provided via request, we will use the previous one
configUri = session->getSuperNode()->getConfigUri();
configUri = session->getSuperNode()->getConfigPath();
logger->info("Restarting to {}", configUri);