File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -296,10 +296,10 @@ func (p *VolumeDescribeFormatter) addVolumeStatsInfo(
296
296
v * api.Volume ,
297
297
t * tabby.Tabby ,
298
298
) error {
299
- stats , err := p . volumes . GetStats ( v , false )
300
- if err != nil {
301
- return err
302
- }
299
+
300
+ // Ignore the error if it cannot get stats
301
+ stats , _ := p . volumes . GetStats ( v , false )
302
+
303
303
t .AddLine ("Stats:" )
304
304
t .AddLine (" Reads:" , stats .GetReads ())
305
305
t .AddLine (" Reads MS:" , stats .GetReadMs ())
@@ -308,7 +308,7 @@ func (p *VolumeDescribeFormatter) addVolumeStatsInfo(
308
308
t .AddLine (" Writes MS:" , stats .GetWriteMs ())
309
309
t .AddLine (" Bytes Written:" , stats .GetWriteBytes ())
310
310
t .AddLine (" IOs in progress:" , stats .GetIoProgress ())
311
- t .AddLine (" Bytes used:" , humanize .BigIBytes (big .NewInt (int64 (stats .BytesUsed ))))
311
+ t .AddLine (" Bytes used:" , humanize .BigIBytes (big .NewInt (int64 (stats .GetBytesUsed () ))))
312
312
return nil
313
313
}
314
314
You can’t perform that action at this time.
0 commit comments