mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 13:18:58 +00:00
fix: uncloud daemon crash when listing partially replicated container records
This commit is contained in:
1 parent
5acf557675
commit
d2a7af744d
3 files changed
+78
-12
No files matched your search
@@ -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