feat: Update 2 files
This commit is contained in:
@@ -139,6 +139,8 @@ namespace dropshell
|
||||
|
||||
{ // determine if the service template hash matches the template hash.
|
||||
auto it = variables.find("TEMPLATE_HASH");
|
||||
service.service_template_hash_match = false;
|
||||
|
||||
if (it == variables.end())
|
||||
error << "Variable TEMPLATE_HASH not found in the service " << filenames::template_info_env << " for "<<server_name << " - "<< service.template_name << std::endl;
|
||||
else if (tinfo.is_set())
|
||||
@@ -148,12 +150,12 @@ namespace dropshell
|
||||
if (!template_hash_str.empty())
|
||||
service_template_hash = std::stoull(template_hash_str);
|
||||
service.service_template_hash_match = (service_template_hash == tinfo.hash());
|
||||
//debug << "Service template hash: " << service_template_hash << " == " << tinfo.hash() << std::endl;
|
||||
debug << "Service template hash: " << service_template_hash << " == " << tinfo.hash() << std::endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Template not available yet, can't check hash
|
||||
service.service_template_hash_match = false;
|
||||
debug << "Couldn't check template hash as the template info is not available (yet?)" << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user