@@ -128,12 +128,13 @@ func outputResult(p *print.Printer, outputFormat, projectLabel string, resourceP
128128 }
129129
130130 table := tables .NewTable ()
131- table .SetHeader ("ID" , "NAME" , "AVAILABILITY ZONE" , "STATE" , "TOTAL SIZE (GB)" , "USED SIZE (GB)" )
131+ table .SetHeader ("ID" , "NAME" , "AVAILABILITY ZONE" , "STATE" , "TOTAL SIZE (GB)" , "USED SIZE (GB)" , "USED BY SNAPSHOTS (GB)" )
132132 for _ , resourcePool := range resourcePools {
133- totalSizeGigabytes , usedSizeGigabytes := "" , ""
133+ totalSizeGigabytes , usedSizeGigabytes , usedBySnapshotsGigabytes := "" , "" , ""
134134 if resourcePool .HasSpace () {
135135 totalSizeGigabytes = utils .PtrString (resourcePool .Space .SizeGigabytes )
136136 usedSizeGigabytes = utils .PtrString (resourcePool .Space .UsedGigabytes .Get ())
137+ usedBySnapshotsGigabytes = utils .PtrString (resourcePool .Space .UsedBySnapshotsGigabytes .Get ())
137138 }
138139 table .AddRow (
139140 utils .PtrString (resourcePool .Id ),
@@ -142,6 +143,7 @@ func outputResult(p *print.Printer, outputFormat, projectLabel string, resourceP
142143 utils .PtrString (resourcePool .State ),
143144 totalSizeGigabytes ,
144145 usedSizeGigabytes ,
146+ usedBySnapshotsGigabytes ,
145147 )
146148 }
147149 err := table .Display (p )
0 commit comments