feat: Update 2 files
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 41s
Build-Test-Publish / build (linux/arm64) (push) Successful in 1m15s

This commit is contained in:
Your Name
2025-09-01 21:10:16 +12:00
parent 622ea5d83d
commit 01db396d2e
2 changed files with 41 additions and 6 deletions

View File

@@ -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;
}
}