mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-30 00:00:11 +01:00
Remove obsolete SuperNode::getConfigUri()
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
parent
1df089e185
commit
6e4ad60b49
3 changed files with 3 additions and 7 deletions
|
@ -90,7 +90,7 @@ public:
|
||||||
json_t *load(const std::string &u, bool resolveIncludes = true,
|
json_t *load(const std::string &u, bool resolveIncludes = true,
|
||||||
bool resolveEnvVars = true);
|
bool resolveEnvVars = true);
|
||||||
|
|
||||||
std::string &getConfigPath() { return configPath; }
|
std::string const & getConfigPath() const { return configPath; }
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace node
|
} // namespace node
|
||||||
|
|
|
@ -67,8 +67,6 @@ protected:
|
||||||
|
|
||||||
struct timespec started; // The time at which the instance has been started.
|
struct timespec started; // The time at which the instance has been started.
|
||||||
|
|
||||||
std::string uri; // URI of configuration
|
|
||||||
|
|
||||||
Config config; // The configuration file.
|
Config config; // The configuration file.
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -143,9 +141,7 @@ public:
|
||||||
|
|
||||||
json_t *getConfig() { return config.root; }
|
json_t *getConfig() { return config.root; }
|
||||||
|
|
||||||
std::string &getConfigPath() { return config.getConfigPath(); }
|
const std::string &getConfigPath() const { return config.getConfigPath(); }
|
||||||
|
|
||||||
std::string getConfigUri() const { return uri; }
|
|
||||||
|
|
||||||
int getAffinity() const { return affinity; }
|
int getAffinity() const { return affinity; }
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ public:
|
||||||
throw BadRequest("Parameter 'config' must be either a URL (string) or "
|
throw BadRequest("Parameter 'config' must be either a URL (string) or "
|
||||||
"a configuration (object)");
|
"a configuration (object)");
|
||||||
} else // If no config is provided via request, we will use the previous one
|
} 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);
|
logger->info("Restarting to {}", configUri);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue