Changeset 134 for trunk/plugin


Ignore:
Timestamp:
06/13/05 10:57:04 (17 years ago)
Author:
bastiaans
Message:

plugin/togap.py:

  • Node reporting of queued jobs now really working
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugin/togap.py

    r133 r134  
    233233                                                count_mynodes = count_mynodes + int( nodepart )
    234234                                               
    235                                 nodeslist = [ count_mynodes ]
     235                                nodeslist = count_mynodes
    236236
    237237                        myAttrs = { }
     
    315315                appendList.append( 'domain=' + jobattrs['domain'] )
    316316
    317                 if len( jobattrs['nodes'] ) > 0:
    318                         appendList.append( 'nodes=' + self.makeNodeString( jobattrs['nodes'] ) )
     317                if jobattrs['status'] == 'R':
     318                        if len( jobattrs['nodes'] ) > 0:
     319                                appendList.append( 'nodes=' + self.makeNodeString( jobattrs['nodes'] ) )
     320                elif jobattrs['status'] == 'Q':
     321                        appendList.append( 'nodes=' + str(jobattrs['nodes']) )
    319322
    320323                return self.makeAppendLists( appendList )
Note: See TracChangeset for help on using the changeset viewer.