Changeset 692


Ignore:
Timestamp:
03/20/13 11:15:35 (11 years ago)
Author:
ramonb
Message:
  • going to require 3.4.0
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.4/jobmond/jobmond.py

    r691 r692  
    414414            if incompatible:
    415415
    416                 debug_msg( 0, 'Gmetric version not compatible, please upgrade to at least 3.0.1' )
     416                debug_msg( 0, 'Gmetric version not compatible, please upgrade to at least 3.4.0' )
    417417                sys.exit( 1 )
    418418
     
    420420
    421421        """
    422         Check version of gmetric is at least 3.0.1
     422        Check version of gmetric is at least 3.4.0
    423423        for the syntax we use
    424424        """
     
    429429
    430430        gfp        = os.popen( self.binary + ' --version' )
    431         lines        = gfp.readlines()
     431        lines      = gfp.readlines()
    432432
    433433        gfp.close()
     
    453453                elif version_major == 3:
    454454
    455                     if version_minor == 0:
    456 
    457                         if version_patch < 1:
    458                        
    459                             incompatible = 1
    460 
    461                         # Gmetric 3.0.1 >< 3.0.3 had a bug in the max metric length
    462                         #
    463                         if version_patch < 3:
    464 
    465                             METRIC_MAX_VAL_LEN = 900
    466 
    467                         elif version_patch >= 3:
    468 
    469                             METRIC_MAX_VAL_LEN = 1400
    470 
    471                     elif version_minor == 1:
    472 
    473                         debug_msg( 0, 'Gmetric 3.1 detected, internal gmetric handling disabled. Failing back to gmetric binary' )
    474 
    475                         METRIC_MAX_VAL_LEN = 500
    476 
    477                         # We don't speak 3.1 gmetric so use binary
    478                         #
    479                         GMETRIC_TARGET = None
     455                    if version_minor < 4:
     456
     457                        incompatible = 1
     458
     459                    else:
     460
     461                        METRIC_MAX_VAL_LEN = 1400
    480462
    481463        return incompatible
Note: See TracChangeset for help on using the changeset viewer.