Handle nil WritableLayer

This commit is contained in:
David Porter 2017-09-15 21:30:00 +00:00
parent 0b1f806557
commit aee1e58d58

View File

@ -258,7 +258,7 @@ func (p *criStatsProvider) makeContainerStats(
result.Rootfs.InodesUsed = &stats.WritableLayer.InodesUsed.Value result.Rootfs.InodesUsed = &stats.WritableLayer.InodesUsed.Value
} }
} }
storageID := stats.WritableLayer.StorageId storageID := stats.GetWritableLayer().GetStorageId()
if storageID != nil { if storageID != nil {
imageFsInfo, found := uuidToFsInfo[*storageID] imageFsInfo, found := uuidToFsInfo[*storageID]
if !found { if !found {