This commit is contained in:
Mikaël Cluseau
2025-07-27 21:08:28 +02:00
parent f83b1eab23
commit 76420e267c

View File

@ -28,10 +28,11 @@ func (hft HostFromTemplate) ClusterName(cfg *localconfig.Config) string {
func hostOrTemplate(cfg *localconfig.Config, name string) (host *localconfig.Host) {
host = cfg.Host(name)
if host != nil {
log.Print("no host named ", name)
return
}
log.Print("no host named ", name)
hft, found, err := hostsFromTemplate.Get(name)
if err != nil {
log.Print("failed to read store: ", err)