Treat empty secrets as no secret
This commit is contained in:
parent
f0102c1e55
commit
6313ecb7d4
@ -661,6 +661,10 @@ Cache::secret(const std::string &name)
|
||||
"Restoring secret '{}' failed: {}", name, job.errorString().toStdString());
|
||||
return std::nullopt;
|
||||
}
|
||||
if (secret.isEmpty()) {
|
||||
nhlog::db()->debug("Restored empty secret '{}'.", name);
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
return secret.toStdString();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user