@@ -50,7 +50,7 @@ class Query(object):
50
50
"nodegroup" , "account" , "filesystem" , "tct_csap" , "tct_operation" , "cloud_nodeclass" ])
51
51
52
52
DISK_CAP_METRICS = set (["gpfs_disk_disksize" , "gpfs_disk_free_fullkb" , "gpfs_disk_free_fragkb" ,
53
- "gpfs_pool_disksize" , "gpfs_pool_free_fragkb" , "gpfs_pool_free_fullkb" ,
53
+ "gpfs_pool_disksize" , "gpfs_pool_free_fragkb" , "gpfs_pool_free_fullkb" ,
54
54
"gpfs_fs_inode_used" , "gpfs_fs_inode_free" , "gpfs_fs_inode_alloc" , "gpfs_fs_inode_max" ])
55
55
56
56
def __init__ (self , metrics = None , bucketsize = 1 , filters = None , groupby = None , includeDiskData = False ):
@@ -188,10 +188,10 @@ def addMeasurement(self, meassure):
188
188
def __str__ (self ):
189
189
# dd = '-a' if self.includeDiskData else ''
190
190
# Workaround for RTC Defect 280368: Zimon capacity query does not return all results (seen on CNSA)
191
- if (self .metrics and
192
- any (str (metric ) in self .DISK_CAP_METRICS for metric in self .metrics )
193
- ) or (self .sensor and
194
- self .sensor in ("GPFSDiskCap" ,"GPFSPoolCap" , "GPFSInodeCap" )
191
+ if (self .metrics
192
+ and any (str (metric ) in self .DISK_CAP_METRICS for metric in self .metrics )
193
+ ) or (self .sensor
194
+ and self .sensor in ("GPFSDiskCap" , "GPFSPoolCap" , "GPFSInodeCap" )
195
195
):
196
196
dd = '-ar'
197
197
elif self .includeDiskData :
0 commit comments