dropshell release 2025.0524.1314
Some checks failed
Dropshell Test / Build_and_Test (push) Failing after 12s
Some checks failed
Dropshell Test / Build_and_Test (push) Failing after 12s
This commit is contained in:
@@ -14,7 +14,7 @@ namespace fs = std::filesystem;
|
||||
namespace dropshell
|
||||
{
|
||||
|
||||
#pragma TODO : Smart test that the service is fully valid.
|
||||
#pragma message("TODO : Smart test that the service is fully valid.")
|
||||
bool SIvalid(const LocalServiceInfo &service_info)
|
||||
{
|
||||
return !service_info.service_name.empty() &&
|
||||
@@ -102,7 +102,7 @@ namespace dropshell
|
||||
auto it = variables.find("TEMPLATE");
|
||||
if (it == variables.end())
|
||||
{
|
||||
error << "Error: TEMPLATE variable not defined in service " << service_name << " on server " << server_name << std::endl;
|
||||
error << "TEMPLATE variable not defined in service " << service_name << " on server " << server_name << std::endl;
|
||||
return LocalServiceInfo();
|
||||
}
|
||||
service.template_name = it->second;
|
||||
@@ -136,12 +136,13 @@ namespace dropshell
|
||||
{ // determine if the service template hash matches the template hash.
|
||||
auto it = variables.find("TEMPLATE_HASH");
|
||||
if (it == variables.end())
|
||||
error << "Variable TEMPLATE_HASH not found in the service " << filenames::template_info_env << std::endl;
|
||||
else
|
||||
{
|
||||
error << "TEMPLATE_HASH variable not defined in service " << service_name << " on server " << server_name << std::endl;
|
||||
return LocalServiceInfo();
|
||||
uint64_t service_template_hash = std::stoull(it->second);
|
||||
service.service_template_hash_match = (service_template_hash == tinfo.hash());
|
||||
//debug << "Service template hash: " << service_template_hash << " == " << tinfo.hash() << std::endl;
|
||||
}
|
||||
uint64_t service_template_hash = std::stoull(it->second);
|
||||
service.service_template_hash_match = (service_template_hash == tinfo.hash());
|
||||
}
|
||||
|
||||
return service;
|
||||
|
Reference in New Issue
Block a user