Changeset 448


Ignore:
Timestamp:
07/20/07 09:52:22 (17 years ago)
Author:
bastiaans
Message:

jobmond/jobmond.py:

  • changed node host reporting to cut off domainname
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jobmond/jobmond.py

    r431 r448  
    633633                jobs_processed  = [ ]
    634634
     635                my_domain               = string.join( socket.getfqdn().split( '.' )[1:], '.' )
     636
    635637                for name, attrs in joblist.items():
    636638
     
    680682
    681683                                        host            = node.split( '/' )[0]
     684
     685                                        host_domain     = string.join( host.split( '.' )[1:], '.' )
     686
     687                                        if host_domain == my_domain:
     688
     689                                                host            = host.split( '.' )[0]
    682690
    683691                                        if nodeslist.count( host ) == 0:
Note: See TracChangeset for help on using the changeset viewer.