Skip to content

Commit 81aa005

Browse files
committed
Update collector query to check for defined Site or ResourceName
1 parent c9aa125 commit 81aa005

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

osg-pilot-container/osgpilot_meter

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,8 @@ schema_sql = [
265265
def query_current_attrs(opts, pool):
266266
coll = htcondor.Collector(pool)
267267

268-
filter_cond = 'SlotType != "Static"'
268+
# Need at least one defined from Site and ResourceName for proper accounting
269+
filter_cond = 'SlotType != "Static" && (GLIDEIN_ResourceName =!= UNDEFINED || GLIDEIN_Site =!= UNDEFINED) '
269270
if not opts.any_records:
270271
filter_cond += ' && IsOsgVoContainer =?= True'
271272

0 commit comments

Comments
 (0)