room entry allow backward compatibility for image.

This commit is contained in:
m1k1o
2021-03-23 22:46:29 +01:00
parent 267c3b7f35
commit b218d18b50
+3 -1
View File
@@ -20,7 +20,9 @@ func (manager *RoomManagerCtx) containerToEntry(container dockerTypes.Container)
nekoImage, ok := container.Labels["m1k1o.neko_rooms.neko_image"]
if !ok {
return nil, fmt.Errorf("Damaged container labels: neko_image not found.")
// Backward compatibility.
nekoImage = container.Image
//return nil, fmt.Errorf("Damaged container labels: neko_image not found.")
}
URL, ok := container.Labels["m1k1o.neko_rooms.url"]