mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
fix: uncloud daemon crash when listing partially replicated container records
This commit is contained in:
@@ -135,6 +135,10 @@ func (c *Container) UnmarshalJSON(data []byte) error {
|
||||
}
|
||||
|
||||
*c = Container(temp)
|
||||
if c.ContainerJSONBase == nil {
|
||||
return fmt.Errorf("container data is missing mandatory base fields: %s", data)
|
||||
}
|
||||
|
||||
c.Name = strings.TrimPrefix(c.Name, "/")
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user